bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER to Py_ssize_t (GH-30175)

This commit is contained in:
neonene 2021-12-18 22:03:43 +09:00 committed by GitHub
parent 6ada013df1
commit 6214caafbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View 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;
}
}