diff Python/mystrtoul.c @ 4596:4fa19659591e legacy-trunk

Keep gcc -Wall happy.
author Guido van Rossum <guido@python.org>
date Thu, 05 Dec 1996 23:27:02 +0000
parents 65d2d8e67da3
children 5af766a1b531
line wrap: on
line diff
--- a/Python/mystrtoul.c	Thu Dec 05 23:18:18 1996 +0000
+++ b/Python/mystrtoul.c	Thu Dec 05 23:27:02 1996 +0000
@@ -112,7 +112,7 @@
     }
 
 /* do the conversion */
-    while (c = Py_CHARMASK(*str))
+    while ((c = Py_CHARMASK(*str)) != '\0')
     {
 	if (isdigit(c) && c - '0' < base)
 	    c -= '0';