mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
fix signed/unsigned warnings
This commit is contained in:
@@ -1768,16 +1768,16 @@ void VarTest::testIsStruct()
|
|||||||
Poco::Int16 s3(-33);
|
Poco::Int16 s3(-33);
|
||||||
Poco::Int32 s4(-388);
|
Poco::Int32 s4(-388);
|
||||||
Poco::Int64 s5(-23823838);
|
Poco::Int64 s5(-23823838);
|
||||||
Poco::UInt8 s6(32);
|
Poco::UInt8 s6(32u);
|
||||||
Poco::UInt16 s7(16000);
|
Poco::UInt16 s7(16000u);
|
||||||
Poco::UInt32 s8(334234);
|
Poco::UInt32 s8(334234u);
|
||||||
Poco::UInt64 s9(2328328382);
|
Poco::UInt64 s9(2328328382u);
|
||||||
float s10(13.333f);
|
float s10(13.333f);
|
||||||
double s11(13.555);
|
double s11(13.555);
|
||||||
bool s12(true);
|
bool s12(true);
|
||||||
char s13('c');
|
char s13('c');
|
||||||
long s14(232323);
|
long s14(232323);
|
||||||
unsigned long s15(21233232);
|
unsigned long s15(21233232u);
|
||||||
std::vector<Var> s16;
|
std::vector<Var> s16;
|
||||||
Struct<std::string> s17;
|
Struct<std::string> s17;
|
||||||
Struct<int> s18;
|
Struct<int> s18;
|
||||||
@@ -1829,16 +1829,16 @@ void VarTest::testIsArray()
|
|||||||
Poco::Int16 s3(-33);
|
Poco::Int16 s3(-33);
|
||||||
Poco::Int32 s4(-388);
|
Poco::Int32 s4(-388);
|
||||||
Poco::Int64 s5(-23823838);
|
Poco::Int64 s5(-23823838);
|
||||||
Poco::UInt8 s6(32);
|
Poco::UInt8 s6(32u);
|
||||||
Poco::UInt16 s7(16000);
|
Poco::UInt16 s7(16000u);
|
||||||
Poco::UInt32 s8(334234);
|
Poco::UInt32 s8(334234u);
|
||||||
Poco::UInt64 s9(2328328382);
|
Poco::UInt64 s9(2328328382u);
|
||||||
float s10(13.333f);
|
float s10(13.333f);
|
||||||
double s11(13.555);
|
double s11(13.555);
|
||||||
bool s12(true);
|
bool s12(true);
|
||||||
char s13('c');
|
char s13('c');
|
||||||
long s14(232323);
|
long s14(232323);
|
||||||
unsigned long s15(21233232);
|
unsigned long s15(21233232u);
|
||||||
std::vector<Var> s16;
|
std::vector<Var> s16;
|
||||||
DynamicStruct s17;
|
DynamicStruct s17;
|
||||||
|
|
||||||
@@ -1889,16 +1889,16 @@ void VarTest::testArrayIdxOperator()
|
|||||||
Poco::Int16 s3(-33);
|
Poco::Int16 s3(-33);
|
||||||
Poco::Int32 s4(-388);
|
Poco::Int32 s4(-388);
|
||||||
Poco::Int64 s5(-23823838);
|
Poco::Int64 s5(-23823838);
|
||||||
Poco::UInt8 s6(32);
|
Poco::UInt8 s6(32u);
|
||||||
Poco::UInt16 s7(16000);
|
Poco::UInt16 s7(16000u);
|
||||||
Poco::UInt32 s8(334234);
|
Poco::UInt32 s8(334234u);
|
||||||
Poco::UInt64 s9(2328328382);
|
Poco::UInt64 s9(2328328382u);
|
||||||
float s10(13.333f);
|
float s10(13.333f);
|
||||||
double s11(13.555);
|
double s11(13.555);
|
||||||
bool s12(true);
|
bool s12(true);
|
||||||
char s13('c');
|
char s13('c');
|
||||||
long s14(232323);
|
long s14(232323);
|
||||||
unsigned long s15(21233232);
|
unsigned long s15(21233232u);
|
||||||
std::vector<Var> s16;
|
std::vector<Var> s16;
|
||||||
s16.push_back(s1);
|
s16.push_back(s1);
|
||||||
s16.push_back(s2);
|
s16.push_back(s2);
|
||||||
|
@@ -247,7 +247,7 @@ void JSONTest::testUnsignedNumberProperty()
|
|||||||
assert (!ds["test"].isEmpty());
|
assert (!ds["test"].isEmpty());
|
||||||
assert (ds["test"].isNumeric());
|
assert (ds["test"].isNumeric());
|
||||||
assert (ds["test"].isInteger());
|
assert (ds["test"].isInteger());
|
||||||
assert (ds["test"] == 4294967295);
|
assert (ds["test"] == 4294967295u);
|
||||||
value = ds["test"];
|
value = ds["test"];
|
||||||
assert(value == -1);
|
assert(value == -1);
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ void JSONTest::testUnsignedNumberProperty()
|
|||||||
assert (!rds["test"].isEmpty());
|
assert (!rds["test"].isEmpty());
|
||||||
assert (rds["test"].isNumeric());
|
assert (rds["test"].isNumeric());
|
||||||
assert (rds["test"].isInteger());
|
assert (rds["test"].isInteger());
|
||||||
assert (rds["test"] == 4294967295);
|
assert (rds["test"] == 4294967295u);
|
||||||
value = rds["test"];
|
value = rds["test"];
|
||||||
assert(value == -1);
|
assert(value == -1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user