diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-02-20 20:25:15 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-02-20 20:25:15 +0000 |
commit | 32d82b918f3d2fd35e2763b6ee4f05980c7b651c (patch) | |
tree | ea6088bb0a5f9fb972051db555d785b0a003bc94 /cpp/test/IceUtil/inputUtil/Client.cpp | |
parent | remove trailing comma from enum (diff) | |
download | ice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.tar.bz2 ice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.tar.xz ice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.zip |
adding ICE_INT64 macro for portable long long constants
Diffstat (limited to 'cpp/test/IceUtil/inputUtil/Client.cpp')
-rw-r--r-- | cpp/test/IceUtil/inputUtil/Client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/IceUtil/inputUtil/Client.cpp b/cpp/test/IceUtil/inputUtil/Client.cpp index eb62d4e7a6a..1662dcfe84e 100644 --- a/cpp/test/IceUtil/inputUtil/Client.cpp +++ b/cpp/test/IceUtil/inputUtil/Client.cpp @@ -78,21 +78,21 @@ main(int, char**) test(!b && result == 0 && pos == 1); b = stringToInt64("-9223372036854775807", result, pos); - test(b && result == -9223372036854775807 && pos == string::npos); + test(b && result == ICE_INT64(-9223372036854775807) && pos == string::npos); b = stringToInt64("-9223372036854775808", result, pos); test(b && result == Int64Min && pos == string::npos); b = stringToInt64("-9223372036854775809", result, pos); test(!b && result == Int64Min && pos == string::npos); b = stringToInt64("9223372036854775806", result, pos); - test(b && result == 9223372036854775806 && pos == string::npos); + test(b && result == ICE_INT64(9223372036854775806) && pos == string::npos); b = stringToInt64("9223372036854775807", result, pos); test(b && result == Int64Max && pos == string::npos); b = stringToInt64("9223372036854775808", result, pos); test(!b && result == Int64Max && pos == string::npos); b = stringToInt64("-9223372036854775807Q", result, pos); - test(b && result == -9223372036854775807 && pos == 20); + test(b && result == ICE_INT64(-9223372036854775807) && pos == 20); b = stringToInt64("-9223372036854775808Q", result, pos); test(b && result == Int64Min && pos == 20); b = stringToInt64("-9223372036854775809Q", result, pos); |