[Python-checkins] python/dist/src/Modules zipimport.c,1.3,1.4
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2002年12月30日 15:06:16 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv29355
Modified Files:
zipimport.c
Log Message:
Added casts to forestall warnings with MetroWerks.
Index: zipimport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zipimport.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** zipimport.c 30 Dec 2002 22:44:03 -0000 1.3
--- zipimport.c 30 Dec 2002 23:06:14 -0000 1.4
***************
*** 686,690 ****
return NULL;
}
! if (get_long(endof_central_dir) != 0x06054B50) {
/* Bad: End of Central Dir signature */
fclose(fp);
--- 686,690 ----
return NULL;
}
! if (get_long((unsigned char *)endof_central_dir) != 0x06054B50) {
/* Bad: End of Central Dir signature */
fclose(fp);
***************
*** 694,698 ****
}
! header_offset = get_long(endof_central_dir + 16);
files = PyDict_New();
--- 694,698 ----
}
! header_offset = get_long((unsigned char *)endof_central_dir + 16);
files = PyDict_New();
***************
*** 912,916 ****
}
! if (get_long(buf) != PyImport_GetMagicNumber()) {
if (Py_VerboseFlag)
PySys_WriteStderr("# %s has bad magic\n",
--- 912,916 ----
}
! if (get_long((unsigned char *)buf) != PyImport_GetMagicNumber()) {
if (Py_VerboseFlag)
PySys_WriteStderr("# %s has bad magic\n",
***************
*** 920,924 ****
}
! if (mtime != 0 && !eq_mtime(get_long(buf + 4), mtime)) {
if (Py_VerboseFlag)
PySys_WriteStderr("# %s has bad mtime\n",
--- 920,924 ----
}
! if (mtime != 0 && !eq_mtime(get_long((unsigned char *)buf + 4), mtime)) {
if (Py_VerboseFlag)
PySys_WriteStderr("# %s has bad mtime\n",