From 11cc480ed0d55086067bfed09eb74ed1ba3af562 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 25 Jan 2012 14:39:21 +0100 Subject: [PATCH] Temporary debug for Windows buildbots. --- Python/import.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/import.c b/Python/import.c index 9876aad400..79cd70827a 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); -- 2.40.0