Commit 570ce36d authored by Antoine Pitrou's avatar Antoine Pitrou

Temporary debug for Windows buildbots.

parent d3735bec
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment