diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-15 01:32:22 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-15 01:32:22 +0100 |
commit | 3300d64c4dd61e71b62d5b55b1f16e34d6335680 (patch) | |
tree | c2bd999ba1a2a1320acba20fb99acf0defb9651e /src/arithmetic.h | |
parent | 681d1e6aa735568a492140d2307a89063e7aadb9 (diff) | |
parent | cda98dc0dea7144941a46ff20598f3c095d7a6d0 (diff) |
implemented __clone method
Diffstat (limited to 'src/arithmetic.h')
-rw-r--r-- | src/arithmetic.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/arithmetic.h b/src/arithmetic.h index ae690bc..21343d1 100644 --- a/src/arithmetic.h +++ b/src/arithmetic.h @@ -55,7 +55,7 @@ public: if (_value->isFloat()) return Value(F<double>()(_value->floatValue(), value)); // apply to natural numbers - return Value(F<long>()(_value->numericValue(), value)); + return Value(F<int64_t>()(_value->numericValue(), value)); } /** @@ -69,7 +69,7 @@ public: if (_value->isFloat()) return Value(F<double>()(_value->floatValue(), value)); // apply to natural numbers - return Value(F<long>()(_value->numericValue(), value)); + return Value(F<int64_t>()(_value->numericValue(), value)); } /** @@ -83,7 +83,7 @@ public: if (_value->isFloat()) return Value(F<double>()(_value->floatValue(), value)); // apply to natural numbers - return Value(F<long>()(_value->numericValue(), value)); + return Value(F<int64_t>()(_value->numericValue(), value)); } /** @@ -97,7 +97,7 @@ public: if (_value->isFloat()) return Value(F<double>()(_value->floatValue(), value?1:0)); // apply to natural numbers - return Value(F<long>()(_value->numericValue(), value?1:0)); + return Value(F<int64_t>()(_value->numericValue(), value?1:0)); } /** @@ -114,7 +114,7 @@ public: if (_value->isFloat()) return Value(F<double>()(_value->floatValue(), v)); // apply to natural numbers - return Value(F<long>()(_value->numericValue(), v)); + return Value(F<int64_t>()(_value->numericValue(), v)); } /** @@ -174,7 +174,7 @@ public: if (_value->isFloat()) return _value->operator=(F<double>()(_value->floatValue(), value)); // do a numeric operation - return _value->operator=(F<long>()(_value->numericValue(), value)); + return _value->operator=(F<int64_t>()(_value->numericValue(), value)); } /** @@ -188,7 +188,7 @@ public: if (_value->isFloat()) return _value->operator=(F<double>()(_value->floatValue(), value)); // do a numeric operation - return _value->operator=(F<long>()(_value->numericValue(), value)); + return _value->operator=(F<int64_t>()(_value->numericValue(), value)); } /** |