From: neonene <53406459+neonene@users.noreply.github.com> Date: Sat, 18 Dec 2021 13:03:43 +0000 (+0900) Subject: bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER... X-Git-Tag: v3.11.0a4~170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6214caafbe66e34e84c1809abf0b7aab6791956b;p=thirdparty%2FPython%2Fcpython.git bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER to Py_ssize_t (GH-30175) --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 21d53365776a..399cb0a99ad6 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; } }