diff Python/import.c @ 74608:ae37ae1cace8 2.7

Temporary debug for Windows buildbots.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 25 Jan 2012 14:39:21 +0100
parents 0bec943f6778
children 33743c478d44
line wrap: on
line diff
--- a/Python/import.c	Wed Jan 25 03:31:39 2012 +0100
+++ b/Python/import.c	Wed Jan 25 14:39:21 2012 +0100
@@ -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);