[Python-checkins] r84076 - in python/branches/py3k/Modules: binascii.c mmapmodule.c posixmodule.c
antoine.pitrou
python-checkins at python.org
Sun Aug 15 20:07:50 CEST 2010
Author: antoine.pitrou
Date: Sun Aug 15 20:07:50 2010
New Revision: 84076
Log:
Fix other warnings under 64-bit Windows.
Modified:
python/branches/py3k/Modules/binascii.c
python/branches/py3k/Modules/mmapmodule.c
python/branches/py3k/Modules/posixmodule.c
Modified: python/branches/py3k/Modules/binascii.c
==============================================================================
--- python/branches/py3k/Modules/binascii.c (original)
+++ python/branches/py3k/Modules/binascii.c Sun Aug 15 20:07:50 2010
@@ -664,7 +664,7 @@
/* More than 3 in a row. Output RLE. */
*out_data++ = ch;
*out_data++ = RUNCHAR;
- *out_data++ = inend-in;
+ *out_data++ = (unsigned char) inend-in;
in = inend-1;
} else {
/* Less than 3. Output the byte itself */
Modified: python/branches/py3k/Modules/mmapmodule.c
==============================================================================
--- python/branches/py3k/Modules/mmapmodule.c (original)
+++ python/branches/py3k/Modules/mmapmodule.c Sun Aug 15 20:07:50 2010
@@ -878,7 +878,7 @@
"in range(0, 256)");
return -1;
}
- self->data[i] = v;
+ self->data[i] = (char) v;
return 0;
}
else if (PySlice_Check(item)) {
Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c (original)
+++ python/branches/py3k/Modules/posixmodule.c Sun Aug 15 20:07:50 2010
@@ -385,7 +385,7 @@
const int i1 = fd >> IOINFO_L2E;
const int i2 = fd & ((1 << IOINFO_L2E) - 1);
- static int sizeof_ioinfo = 0;
+ static size_t sizeof_ioinfo = 0;
/* Determine the actual size of the ioinfo structure,
* as used by the CRT loaded in memory
@@ -3655,8 +3655,8 @@
char **argvlist;
char **envlist;
PyObject *res = NULL;
- int mode, envc;
- Py_ssize_t argc, i;
+ int mode;
+ Py_ssize_t argc, i, envc;
Py_intptr_t spawnval;
PyObject *(*getitem)(PyObject *, Py_ssize_t);
Py_ssize_t lastarg = 0;
@@ -3841,7 +3841,8 @@
char **argvlist;
char **envlist;
PyObject *res=NULL;
- int mode, i, argc, envc;
+ int mode;
+ Py_ssize_t argc, i, envc;
Py_intptr_t spawnval;
PyObject *(*getitem)(PyObject *, Py_ssize_t);
int lastarg = 0;
More information about the Python-checkins
mailing list