Skip to content

Commit c57e30c

Browse files
Update Modules/_struct.c
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 3f8cf50 commit c57e30c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_struct.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ np_short(_structmodulestate *state, char *p, PyObject *v, const formatdef *f)
591591
if (x < SHRT_MIN || x > SHRT_MAX) {
592592
PyErr_Format(state->StructError,
593593
"short format requires %d <= number <= %d",
594-
SHRT_MIN,
595-
SHRT_MAX);
594+
(int)SHRT_MIN, (int)SHRT_MAX);
596595
return -1;
597596
}
598597
y = (short)x;

0 commit comments

Comments
 (0)