[ox] Fix GBA build

This commit is contained in:
2020-05-17 04:20:43 -05:00
parent f1110bd849
commit 2dad1688b5
6 changed files with 6 additions and 15 deletions

View File

@ -249,10 +249,12 @@ std::map<std::string, ox::Error(*)()> tests = {
oxReturnError(result.error);
if (result.value != val) {
std::cout << "Bad value: " << result.value << ", expected: " << val << '\n';
return OxError(1);
}
return OxError(result.value != val);
return OxError(0);
};
oxAssert(check(uint32_t(14)), "Decode of 14 failed.");
oxAssert(check(int64_t(-1)), "Decode of -1 failed.");
oxAssert(check(int64_t(1)), "Decode of 1 failed.");
oxAssert(check(int64_t(2)), "Decode of 2 failed.");
oxAssert(check(int64_t(42)), "Decode of 42 failed.");