Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3afb2d2

Browse files
committed
Remove compiler warnings on Solaris 8.
Can go into 2.2.x, but not necessary.
1 parent bcc2c12 commit 3afb2d2

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Modules/_hotshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ get_version_string(void)
14531453
char *buffer;
14541454
int i = 0;
14551455

1456-
while (*rev && !isdigit(*rev))
1456+
while (*rev && !isdigit((int)*rev))
14571457
++rev;
14581458
while (rev[i] != ' ' && rev[i] != '\0')
14591459
++i;

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ get_version_string(void)
13661366
char *rev = rcsid;
13671367
int i = 0;
13681368

1369-
while (!isdigit(*rev))
1369+
while (!isdigit((int)*rev))
13701370
++rev;
13711371
while (rev[i] != ' ' && rev[i] != '\0')
13721372
++i;

Modules/stropmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ strop_atoi(PyObject *self, PyObject *args)
766766
x = (long) PyOS_strtoul(s, &end, base);
767767
else
768768
x = PyOS_strtol(s, &end, base);
769-
if (end == s || !isalnum(end[-1]))
769+
if (end == s || !isalnum((int)end[-1]))
770770
goto bad;
771771
while (*end && isspace(Py_CHARMASK(*end)))
772772
end++;

pyconfig.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@
106106
#undef __EXTENSIONS__
107107

108108
/* This must be set to 64 on some systems to enable large file support */
109+
#ifndef _FILE_OFFSET_BITS
109110
#undef _FILE_OFFSET_BITS
111+
#endif
110112

111113
/* Define if getpgrp() must be called as getpgrp(0). */
112114
#undef GETPGRP_HAVE_ARG

0 commit comments

Comments
 (0)