summaryrefslogtreecommitdiff
path: root/overlapped.c
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-02-07 00:29:19 +0000
committerRichard Oudkerk <shibturn@gmail.com>2013-02-07 00:29:19 +0000
commit6356caa624ab103248c50d41bf5db6a491f039ca (patch)
tree3ed05c71f662836c5a5dc71bd4a2d5957d81ae9c /overlapped.c
parentd7305b0bcbba3761257f84eaac888972dc2c77fa (diff)
downloadtrollius-6356caa624ab103248c50d41bf5db6a491f039ca.tar.gz
Fixes for 64 bit Windows.
Diffstat (limited to 'overlapped.c')
-rw-r--r--overlapped.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlapped.c b/overlapped.c
index eed0989..943e788 100644
--- a/overlapped.c
+++ b/overlapped.c
@@ -605,7 +605,7 @@ Overlapped_WriteFile(OverlappedObject *self, PyObject *args)
return NULL;
#if SIZEOF_SIZE_T > SIZEOF_LONG
- if (self->write_buffer.len > (Py_ssize_t)PY_ULONG_MAX) {
+ if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) {
PyBuffer_Release(&self->write_buffer);
PyErr_SetString(PyExc_ValueError, "buffer to large");
return NULL;