bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER to Py_ssize_t (GH-30175)
https://github.com/python/cpython/commit/6214caafbe66e34e84c1809abf0b7aab679... commit: 6214caafbe66e34e84c1809abf0b7aab6791956b branch: main author: neonene <53406459+neonene@users.noreply.github.com> committer: zooba <steve.dower@microsoft.com> date: 2021-12-18T13:03:43Z summary: bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER to Py_ssize_t (GH-30175) files: M Modules/mmapmodule.c diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 21d53365776ab..399cb0a99ad65 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -536,7 +536,8 @@ mmap_resize_method(mmap_object *self, !SetEndOfFile(self->file_handle)) { /* resizing failed. try to remap the file */ file_resize_error = GetLastError(); - new_size = max_size.QuadPart = self->size; + max_size.QuadPart = self->size; + new_size = self->size; } }
participants (1)
-
zooba