diff --git a/src/obj.h b/src/obj.h index 4c400984..4d6d834e 100644 --- a/src/obj.h +++ b/src/obj.h @@ -13,10 +13,10 @@ typedef int64_t _Int; typedef double _Float; -#define _Int_MAX_POS 9223372036854775807 -#define _Int_MAX_NEG -9223372036854775808 -const volatile _Float _FLOAT_INF_POS=1.0/0.0; -const volatile _Float _FLOAT_INF_NEG=-1.0/0.0; +const _Int _Int_MAX_POS = 9223372036854775807LL; +const _Int _Int_MAX_NEG = -9223372036854775807LL; +const _Float _FLOAT_INF_POS = INFINITY; +const _Float _FLOAT_INF_NEG = -INFINITY; class PyObject; class CodeObject;