diff options
author | Guido van Rossum <guido@python.org> | 1997-04-11 20:37:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-11 20:37:35 (GMT) |
commit | 6bf62dad9e83003a70aef4158df063697926ba7c (patch) | |
tree | 8aa964aef3976a2a0b7d1215bdbd7c61b0b8f16d /Python/bltinmodule.c | |
parent | 90126035cab1aad6edbc62376a9ff9cb0453523f (diff) | |
download | cpython-6bf62dad9e83003a70aef4158df063697926ba7c.zip cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.gz cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.bz2 |
Keep gcc -Wall and Microsoft VC happy.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index cee167c..da76f18 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -42,6 +42,8 @@ PERFORMANCE OF THIS SOFTWARE. #include "mymath.h" +#include <ctype.h> + #ifdef HAVE_UNISTD_H #include <unistd.h> #endif @@ -233,7 +235,7 @@ builtin_chr(self, args) err_setstr(ValueError, "chr() arg not in range(256)"); return NULL; } - s[0] = x; + s[0] = (char)x; return newsizedstringobject(s, 1); } @@ -301,7 +303,7 @@ builtin_complex(self, args) object *args; { object *r, *i, *tmp; - number_methods *nbr, *nbi; + number_methods *nbr, *nbi = NULL; Py_complex cr, ci; int own_r = 0; @@ -484,7 +486,7 @@ builtin_eval(self, args) return NULL; } str = getstringvalue(cmd); - if (strlen(str) != getstringsize(cmd)) { + if ((int)strlen(str) != getstringsize(cmd)) { err_setstr(ValueError, "embedded '\\0' in string arg"); return NULL; |