Skip to content

Commit 4c83449

Browse files
committed
Fix objcap conversion bug
1 parent 3805080 commit 4c83449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/objcap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void * mp_obj_cap_get(mp_obj_t self_in) {
154154
return self->value;
155155
} else {
156156
// allow integer objects to appear as tagless pointers, in particular for NULLs
157-
return (void*)(uintptr_t)mp_obj_int_get_truncated(self_in);
157+
return (void*)(uintptr_t)mp_obj_get_int_truncated(self_in);
158158
}
159159
}
160160

0 commit comments

Comments
 (0)