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/getargs.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/getargs.c')
-rw-r--r-- | Python/getargs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 506cd38..4ac934d 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -453,7 +453,7 @@ convertsimple1(arg, p_format, p_va) if (ival == -1 && err_occurred()) return "integer<b>"; else - *p = ival; + *p = (char) ival; break; } @@ -464,7 +464,7 @@ convertsimple1(arg, p_format, p_va) if (ival == -1 && err_occurred()) return "integer<h>"; else - *p = ival; + *p = (short) ival; break; } @@ -497,7 +497,7 @@ convertsimple1(arg, p_format, p_va) if (err_occurred()) return "float<f>"; else - *p = dval; + *p = (float) dval; break; } @@ -548,7 +548,7 @@ convertsimple1(arg, p_format, p_va) *q = getstringsize(arg); format++; } - else if (strlen(*p) != getstringsize(arg)) + else if ((int)strlen(*p) != getstringsize(arg)) return "string without null bytes"; break; } @@ -571,7 +571,7 @@ convertsimple1(arg, p_format, p_va) format++; } else if (*p != NULL && - strlen(*p) != getstringsize(arg)) + (int)strlen(*p) != getstringsize(arg)) return "None or string without null bytes"; break; } |