[Python-3000-checkins] r62589 - in python/branches/py3k-ctypes-pep3118/Modules/_ctypes: _ctypes.c ctypes.h
thomas.heller
python-3000-checkins at python.org
Wed Apr 30 13:49:46 CEST 2008
Author: thomas.heller
Date: Wed Apr 30 13:49:46 2008
New Revision: 62589
Log:
Fix compiler warnings.
Modified:
python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c
python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h
Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c (original)
+++ python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Wed Apr 30 13:49:46 2008
@@ -1173,10 +1173,10 @@
assert(itemdict->format);
if (itemdict->format[0] == '(') {
- sprintf(buf, "(%d,", length);
+ sprintf(buf, "(%ld,", length);
stgdict->format = alloc_format_string(buf, itemdict->format+1);
} else {
- sprintf(buf, "(%d)", length);
+ sprintf(buf, "(%ld)", length);
stgdict->format = alloc_format_string(buf, itemdict->format);
}
if (stgdict->format == NULL) {
Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h
==============================================================================
--- python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h (original)
+++ python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h Wed Apr 30 13:49:46 2008
@@ -205,8 +205,8 @@
char *format;
int ndim;
Py_ssize_t *shape;
-/* Py_ssize_t *strides; /* unused in ctypes */
-/* Py_ssize_t *suboffsets; /* unused in ctypes */
+/* Py_ssize_t *strides; */ /* unused in ctypes */
+/* Py_ssize_t *suboffsets; */ /* unused in ctypes */
} StgDictObject;
More information about the Python-3000-checkins
mailing list