mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 21:50:47 +01:00
Move to standard integer types #1147
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user