Skip to content

Commit

Permalink
bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion fr…
Browse files Browse the repository at this point in the history
…om LARGE_INTEGER to Py_ssize_t (pythonGH-30175)
  • Loading branch information
neonene authored Dec 18, 2021
1 parent 6ada013 commit 6214caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/mmapmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6214caa

Please sign in to comment.