summaryrefslogtreecommitdiff
path: root/include/hashmember.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hashmember.h')
-rw-r--r--include/hashmember.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/include/hashmember.h b/include/hashmember.h
index 2724836..d476b55 100644
--- a/include/hashmember.h
+++ b/include/hashmember.h
@@ -71,12 +71,30 @@ public:
}
/**
- * Cast to a long
- * @return long
+ * Cast to a integer
+ * @return int16_t
*/
- operator long () const
+ operator int16_t () const
{
- return _base.get(_index).longValue();
+ return _base.get(_index).numericValue();
+ }
+
+ /**
+ * Cast to a integer
+ * @return int32_t
+ */
+ operator int32_t () const
+ {
+ return _base.get(_index).numericValue();
+ }
+
+ /**
+ * Cast to a integer
+ * @return int64_t
+ */
+ operator int64_t () const
+ {
+ return _base.get(_index).numericValue();
}
/**