]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER...
authorneonene <53406459+neonene@users.noreply.github.com>
Sat, 18 Dec 2021 13:03:43 +0000 (22:03 +0900)
committerGitHub <noreply@github.com>
Sat, 18 Dec 2021 13:03:43 +0000 (13:03 +0000)
Modules/mmapmodule.c

index 21d53365776ab2d6fef83f5f1fb88ee1b802d64e..399cb0a99ad655c4ad5c5501bf3deb3a6928c418 100644 (file)
@@ -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;
             }
         }