Move to standard integer types #1147

This commit is contained in:
Alex Fabijanic
2017-10-05 17:03:11 -05:00
parent de64a1cbd2
commit 71531d1a75
10 changed files with 14 additions and 13 deletions

View File

@@ -347,9 +347,10 @@ void DataTest::writeToCLOB(BinaryWriter& writer)
writer << (unsigned short) 50000;
writer << -123456;
writer << (unsigned) 123456;
#ifndef POCO_LONG_IS_64_BIT
writer << (long) -1234567890;
writer << (unsigned long) 1234567890;
#endif // POCO_LONG_IS_64_BIT
writer << (Int64) -1234567890;
writer << (UInt64) 1234567890;
@@ -405,7 +406,7 @@ void DataTest::readFromCLOB(BinaryReader& reader)
unsigned uintv = 0;
reader >> uintv;
assert (uintv == 123456);
#ifndef POCO_LONG_IS_64_BIT
long longv = 0;
reader >> longv;
assert (longv == -1234567890);
@@ -413,7 +414,7 @@ void DataTest::readFromCLOB(BinaryReader& reader)
unsigned long ulongv = 0;
reader >> ulongv;
assert (ulongv == 1234567890);
#endif // POCO_LONG_IS_64_BIT
Int64 int64v = 0;
reader >> int64v;
assert (int64v == -1234567890);