diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-14 15:02:40 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-14 15:02:40 +0100 |
commit | ab98c70a98e860f4cce0332d7164077cffa51b30 (patch) | |
tree | 44f429f0b0c920cb51724171ebd167b926cc8122 /include/value.h | |
parent | 6c64773dc5edd4b56eabcfa76b66b53ab76ecdf6 (diff) |
Value::numericValue() now returns a int64_t, and no longer a long
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/value.h b/include/value.h index 9c48f1f..fce8750 100644 --- a/include/value.h +++ b/include/value.h @@ -381,9 +381,15 @@ public: /** * Retrieve the value as number - * @return long - */ - long numericValue() const; + * + * We force this to be a int64_t because we assume that most + * servers run 64 bits nowadays, and because we use int32_t, int64_t + * almost everywhere, instead of 'long' and on OSX neither of + * these intxx_t types is defined as 'long'... + * + * @return int64_t + */ + int64_t numericValue() const; /** * Retrieve the value as boolean |