Skip to content

Commit f1f4402

Browse files
committed
Fix truncation of OpenSlide handle to 32 bits
1 parent 282887e commit f1f4402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openslide/lowlevel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def from_param(cls, obj):
7777
def _check_open(result, _func, _args):
7878
if result is None:
7979
raise OpenSlideError("Could not open image file")
80-
return _OpenSlide(result)
80+
return _OpenSlide(c_void_p(result))
8181

8282
# prevent further operations on slide handle after it is closed
8383
def _check_close(_result, _func, args):

0 commit comments

Comments
 (0)