diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-06 00:32:15 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-06 00:32:15 (GMT) |
commit | 6e13a562ae01a962612ca76f9afcc7211240236e (patch) | |
tree | 272a23269db39f82d12388554cac8497f2dc4bab /Objects | |
parent | 97f4a33e125dc14c72070bbf38f723aaa26b9df7 (diff) | |
download | cpython-6e13a562ae01a962612ca76f9afcc7211240236e.zip cpython-6e13a562ae01a962612ca76f9afcc7211240236e.tar.gz cpython-6e13a562ae01a962612ca76f9afcc7211240236e.tar.bz2 |
Enable large file support on Win32 systems.
Curious: the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions > 2 Gb.
test_largefile: This was opening its test file in text mode. I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/fileobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index f592e7a..5909e99 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -367,7 +367,7 @@ file_truncate(PyFileObject *f, PyObject *args) } else { Py_BEGIN_ALLOW_THREADS errno = 0; - ret = _chsize(fileno(f->f_fp), newsize); + ret = _chsize(fileno(f->f_fp), (long)newsize); Py_END_ALLOW_THREADS if (ret != 0) goto onioerror; } |