[Python-checkins] cpython (2.7): Temporary debug for Windows buildbots.
antoine.pitrou
python-checkins at python.org
Wed Jan 25 14:41:30 CET 2012
http://hg.python.org/cpython/rev/ae37ae1cace8
changeset: 74608:ae37ae1cace8
branch: 2.7
parent: 74605:0bec943f6778
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Jan 25 14:39:21 2012 +0100
summary:
Temporary debug for Windows buildbots.
files:
Python/import.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -907,6 +907,11 @@
}
/* 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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list