Skip to content

Commit

Permalink
thanm: Change the script instruction time fields to be signed.
Browse files Browse the repository at this point in the history
Funded by GhostPhanom.
  • Loading branch information
nmlgc committed Oct 7, 2018
1 parent 92f4946 commit df46b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extlib/thtypes
Submodule thtypes updated 1 files
+2 −2 anm_types.h
4 changes: 2 additions & 2 deletions thanm/thanm.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ anm_dump(
abort();
}

fprintf(stream, "Instruction #%u: %hu %hu %hu",
fprintf(stream, "Instruction #%u: %hd %hu %hu",
instr_num++, instr->time, instr->param_mask, instr->type);

if (instr->length > sizeof(anm_instr_t)) {
Expand Down Expand Up @@ -1002,7 +1002,7 @@ anm_create(
instr = malloc(sizeof(*instr));

instr->length = 0;
instr->time = strtol(tmp, &tmp, 10);
instr->time = (int16_t)strtol(tmp, &tmp, 10);
instr->param_mask = strtol(tmp, &tmp, 10);
instr->type = strtol(tmp, &tmp, 10);

Expand Down

0 comments on commit df46b8a

Please sign in to comment.