Browse Source

Update obj.h

blueloveTH 3 years ago
parent
commit
50015ce453
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/obj.h

+ 4 - 4
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;