Skip to content

Commit

Permalink
Fix oops in smaxIntTypeForBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 17, 2025
1 parent 1329f20 commit 529ba00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smax-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ char *smaxStringType(XType type) {
}
}

static XType smaxIntTypeForBytes(int n) {
static XType smaxIntTypeForBytes(size_t n) {
if(n > sizeof(int)) return X_LONG;
if(n > sizeof(short)) return X_INT;
if(n > sizeof(char)) return X_SHORT;
Expand Down

0 comments on commit 529ba00

Please sign in to comment.