summaryrefslogtreecommitdiffstats
path: root/Modules/cgensupport.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 20:37:35 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 20:37:35 (GMT)
commit6bf62dad9e83003a70aef4158df063697926ba7c (patch)
tree8aa964aef3976a2a0b7d1215bdbd7c61b0b8f16d /Modules/cgensupport.c
parent90126035cab1aad6edbc62376a9ff9cb0453523f (diff)
downloadcpython-6bf62dad9e83003a70aef4158df063697926ba7c.zip
cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.gz
cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.bz2
Keep gcc -Wall and Microsoft VC happy.
Diffstat (limited to 'Modules/cgensupport.c')
-rw-r--r--Modules/cgensupport.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/cgensupport.c b/Modules/cgensupport.c
index d8a6014..fd2bad6 100644
--- a/Modules/cgensupport.c
+++ b/Modules/cgensupport.c
@@ -93,7 +93,7 @@ getishortarg(args, nargs, i, p_arg)
long x;
if (!getilongarg(args, nargs, i, &x))
return 0;
- *p_arg = x;
+ *p_arg = (short) x;
return 1;
}
@@ -129,15 +129,15 @@ extractfloat(v, p_arg)
/* Fall through to error return at end of function */
}
else if (is_floatobject(v)) {
- *p_arg = GETFLOATVALUE((floatobject *)v);
+ *p_arg = (float) GETFLOATVALUE((floatobject *)v);
return 1;
}
else if (is_intobject(v)) {
- *p_arg = GETINTVALUE((intobject *)v);
+ *p_arg = (float) GETINTVALUE((intobject *)v);
return 1;
}
else if (is_longobject(v)) {
- *p_arg = dgetlongvalue(v);
+ *p_arg = (float) dgetlongvalue(v);
return 1;
}
return err_badarg();
@@ -221,7 +221,7 @@ getishortarraysize(args, nargs, i, p_arg)
long x;
if (!getilongarraysize(args, nargs, i, &x))
return 0;
- *p_arg = x;
+ *p_arg = (short) x;
return 1;
}
@@ -287,7 +287,7 @@ getishortarray(args, nargs, i, n, p_arg)
if (!is_intobject(w)) {
return err_badarg();
}
- p_arg[i] = getintvalue(w);
+ p_arg[i] = (short) getintvalue(w);
}
return 1;
}
@@ -300,7 +300,7 @@ getishortarray(args, nargs, i, n, p_arg)
if (!is_intobject(w)) {
return err_badarg();
}
- p_arg[i] = getintvalue(w);
+ p_arg[i] = (short) getintvalue(w);
}
return 1;
}