Skip to content

Commit

Permalink
Fix conversion warnings in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Mar 20, 2016
1 parent 5a9a306 commit 2a7456b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util/StringTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ CPPUNIT_TEST_SUITE_REGISTRATION(StringTest);

struct OverflowTestStruct {
char data[4];
char canary[4];
unsigned char canary[4];

OverflowTestStruct() {
std::fill_n(data, 4, 0xCC);
std::fill_n(canary, 4, 0xDD);
}

bool checkCanary() {
char expected[] = {0xDD, 0xDD, 0xDD, 0xDD};
unsigned char expected[] = {0xDD, 0xDD, 0xDD, 0xDD};

return std::equal(expected, expected + 4, canary);
}
Expand Down

0 comments on commit 2a7456b

Please sign in to comment.