Skip to content

Commit cd58a47

Browse files
committed
use upcall to return primitive
1 parent bedc646 commit cd58a47

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/pyhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ void initialize_hashes() {
5454

5555

5656
Py_hash_t _Py_HashBytes(const void *src, Py_ssize_t len) {
57-
return polyglot_as_i64(polyglot_invoke(PY_BUILTIN, "hash", polyglot_from_string(src, "ascii")));
57+
return UPCALL_L(PY_BUILTIN, "hash", polyglot_from_string(src, "ascii"));
5858
}

0 commit comments

Comments
 (0)