Skip to content

Commit 9c3eb3d

Browse files
committed
Fixed possible bug as a method was called using an old signature. Apparently this code branch never ran in the tests
1 parent cf297b7 commit 9c3eb3d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

smmap/mman.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _copy_from(self, rhs):
6868
self._size = rhs._size
6969

7070
if self._region is not None:
71-
self._region.increment_usage_count(1)
71+
self._region.increment_usage_count()
7272
# END handle regions
7373

7474
def __copy__(self):
@@ -358,7 +358,6 @@ def _obtain_region(self, a, offset, size, flags, is_recursive):
358358
# END handle array
359359

360360
assert r.includes_ofs(offset)
361-
#assert r.includes_ofs(offset+size-1)
362361
return r
363362

364363
#}END internal methods

0 commit comments

Comments
 (0)