diff --git a/Modules/_struct.c b/Modules/_struct.c index f360dad21e4..be641214ce6 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -223,7 +223,7 @@ unpack_double(const char *p, /* start of 8-byte string */ /* Helper to format the range error exceptions */ static int -_range_error(formatdef *f, int is_unsigned) +_range_error(const formatdef *f, int is_unsigned) { if (is_unsigned == 0) { long smallest = 0, largest = 0;