summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:37:25 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:37:25 (GMT)
commit14b9b110982fd7f00392b898230c4015bd2bdaaa (patch)
tree77ed33b8f8db6c8b91fd253978ea5bc8c859bca6 /Objects/fileobject.c
parentb28a375f2f4724c129e8683f548c8f1477e00a68 (diff)
downloadcpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.zip
cpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.tar.gz
cpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.tar.bz2
If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 3a31314..e0c5bfe 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -390,7 +390,7 @@ stdprinter_write(PyStdPrinter_Object *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
errno = 0;
-#if defined(MS_WIN64) || defined(MS_WINDOWS)
+#ifdef MS_WINDOWS
if (n > INT_MAX)
n = INT_MAX;
n = write(self->fd, c, (int)n);