summaryrefslogtreecommitdiff
path: root/src/value.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 15:02:40 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 15:02:40 +0100
commitab98c70a98e860f4cce0332d7164077cffa51b30 (patch)
tree44f429f0b0c920cb51724171ebd167b926cc8122 /src/value.cpp
parent6c64773dc5edd4b56eabcfa76b66b53ab76ecdf6 (diff)
Value::numericValue() now returns a int64_t, and no longer a long
Diffstat (limited to 'src/value.cpp')
-rw-r--r--src/value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.cpp b/src/value.cpp
index 29b6dcd..9af2d14 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -74,7 +74,7 @@ Value::Value(int32_t value)
}
/**
- * Constructor based on long value
+ * Constructor based on int64_t value
* @param value
*/
Value::Value(int64_t value)
@@ -1415,7 +1415,7 @@ Value Value::clone(Type type) const
* Retrieve the value as integer
* @return long
*/
-long Value::numericValue() const
+int64_t Value::numericValue() const
{
// already a long?
if (isNumeric()) return Z_LVAL_P(_val);