summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-25 13:39:21 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-25 13:39:21 (GMT)
commit11cc480ed0d55086067bfed09eb74ed1ba3af562 (patch)
treeb926ae570b757d2bbff56368f5dbd607f3813833 /Python
parent0e5fd59a27925ee5387717f3ed1f8ca2f3d64cbc (diff)
downloadcpython-11cc480ed0d55086067bfed09eb74ed1ba3af562.zip
cpython-11cc480ed0d55086067bfed09eb74ed1ba3af562.tar.gz
cpython-11cc480ed0d55086067bfed09eb74ed1ba3af562.tar.bz2
Temporary debug for Windows buildbots.
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 9876aad..79cd708 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -907,6 +907,11 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
}
/* Now write the true mtime */
fseek(fp, 4L, 0);
+ if (mtime >= LONG_MAX) {
+ fprintf(stderr, "** mtime=%ld > %ld (%ld, %ld)\n", mtime, LONG_MAX, sizeof(time_t), sizeof(srcstat->st_mtime));
+ assert(0);
+ /* can't get here */
+ }
assert(mtime < LONG_MAX);
PyMarshal_WriteLongToFile((long)mtime, fp, Py_MARSHAL_VERSION);
fflush(fp);