Skip to content

Commit 55cc889

Browse files
committed
TSA: fix warnings
1 parent c21e5da commit 55cc889

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

thcrap_tsa/src/anm.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ script_mods_t entry_mods_t::script_mods(uint8_t *in, anm_offset_t &offset, uint3
647647

648648
if(!strcmp(key_sep + 1, "time")) {
649649
auto time = json_integer_value(val_j);
650-
if(!json_is_integer(val_j) || (time < INT16_MIN) | (time > INT16_MAX)) {
650+
if(!json_is_integer(val_j) || (time < INT16_MIN) || (time > INT16_MAX)) {
651651
FAIL(
652652
": {\"changes\": {\"%s\"}", "Time must be a signed 16-bit integer, between %d and %d.",
653653
key, INT16_MIN, INT16_MAX
@@ -1380,7 +1380,6 @@ size_t anm_get_size(const char* fn, json_t* patch, size_t patch_size) {
13801380

13811381
size_t out_size;
13821382
void* anm_file;
1383-
anm_header11_t* entry;
13841383

13851384
anm_file = file_load(fn, &out_size);
13861385
fr->disable = false;

0 commit comments

Comments
 (0)