mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00
Merge pull request #187 from pah/fixes/sign-compare
DocumentMove tests: compiler error due to -Wsign-compare
This commit is contained in:
commit
96f979a0c4
@ -313,7 +313,7 @@ TYPED_TEST(DocumentMove, MoveConstructorStack) {
|
||||
GenericStringStream<Encoding> is("[\"one\", \"two\", \"three\"]");
|
||||
reader.template Parse<kParseDefaultFlags>(is, a);
|
||||
size_t capacity = a.GetStackCapacity();
|
||||
EXPECT_GT(capacity, 0);
|
||||
EXPECT_GT(capacity, 0u);
|
||||
|
||||
Document b(std::move(a));
|
||||
EXPECT_EQ(a.GetStackCapacity(), defaultCapacity);
|
||||
@ -405,7 +405,7 @@ TYPED_TEST(DocumentMove, MoveAssignmentStack) {
|
||||
GenericStringStream<Encoding> is("[\"one\", \"two\", \"three\"]");
|
||||
reader.template Parse<kParseDefaultFlags>(is, a);
|
||||
size_t capacity = a.GetStackCapacity();
|
||||
EXPECT_GT(capacity, 0);
|
||||
EXPECT_GT(capacity, 0u);
|
||||
|
||||
Document b;
|
||||
b = std::move(a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user