mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
Temporary debug for Windows buildbots.
This commit is contained in:
parent
0e5fd59a27
commit
11cc480ed0
1 changed files with 5 additions and 0 deletions
|
@ -907,6 +907,11 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
|
||||||
}
|
}
|
||||||
/* Now write the true mtime */
|
/* Now write the true mtime */
|
||||||
fseek(fp, 4L, 0);
|
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);
|
assert(mtime < LONG_MAX);
|
||||||
PyMarshal_WriteLongToFile((long)mtime, fp, Py_MARSHAL_VERSION);
|
PyMarshal_WriteLongToFile((long)mtime, fp, Py_MARSHAL_VERSION);
|
||||||
fflush(fp);
|
fflush(fp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue