From 50015ce4537e1c7904b06ec405cd9f43376eaf6d Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 10 Nov 2022 17:12:43 +0800 Subject: [PATCH] Update obj.h --- src/obj.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;