From 217d4df7b022a3d928fabe9b2e820cb149b69c47 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Mon, 8 Jul 2002 23:39:34 +0000 Subject: Fixed INT64MIN -> Int64Min and INT64MAX -> Int64Max in Windows-specific code. --- cpp/src/IceUtil/InputUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/IceUtil/InputUtil.cpp') diff --git a/cpp/src/IceUtil/InputUtil.cpp b/cpp/src/IceUtil/InputUtil.cpp index 193aff767af..073400a2e36 100644 --- a/cpp/src/IceUtil/InputUtil.cpp +++ b/cpp/src/IceUtil/InputUtil.cpp @@ -111,12 +111,12 @@ strToInt64(const char* s, char** endptr, int base) { int digit = digitVal[toupper(*s) - '0']; assert(digit != 100); - if(result < INT64MAX / base) + if(result < Int64Max / base) { result *= base; result += digit; } - else if((digit <= INT64MAX % base) || (sign == -1 && digit == INT64MAX % base + 1)) + else if((digit <= Int64Max % base) || (sign == -1 && digit == Int64Max % base + 1)) { result *= base; result += digit; @@ -124,7 +124,7 @@ strToInt64(const char* s, char** endptr, int base) else { overflow = true; - result = sign == -1 ? INT64MIN : INT64MAX; + result = sign == -1 ? Int64Min : Int64Max; } } ++s; -- cgit v1.2.3