Skip to content

Commit

Permalink
[t1read.c] LGTM fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaydeearts committed Apr 28, 2021
1 parent 542a648 commit 42ff9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/public/lib/source/t1read/t1read.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ static STI addString(t1rCtx h, size_t length, const char *value) {
/* Get string from STI. */
static char *getString(t1rCtx h, STI sti) {
if ((sti != STI_UNDEF) && (sti >= STI_LIMIT))
fatal(h, t1rErrSTILimit, "String INDEX limit exceeded: [%ld]", sti);
fatal(h, t1rErrSTILimit, "String INDEX limit exceeded: [%hu]", sti);
else if ((sti == STI_UNDEF) || (sti >= h->strings.index.cnt))
fatal(h, t1rErrSTIUndef, "String undefined for index: [%ld]", sti);
fatal(h, t1rErrSTIUndef, "String undefined for index: [%hu]", sti);
else
return &h->strings.buf.array[h->strings.index.array[sti]];
}
Expand Down

0 comments on commit 42ff9e6

Please sign in to comment.