Skip to content

Commit 4c0fc7e

Browse files
committed
I'm desparate
1 parent 1b4c083 commit 4c0fc7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

line_profiler/_line_profiler.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ cdef extern from "Python_wrapper.h":
114114
cdef void Py_XDECREF(PyObject *o)
115115

116116
# it's actually an unsigned long, but we want to avoid truncation on windows
117-
cdef uint64_t PyThread_get_thread_ident()
117+
cdef unsigned long long PyThread_get_thread_ident()
118118
cdef Py_hash_t hash_bytecode(PyObject *bytestring, const char* bytes,
119119
Py_ssize_t len)
120120

@@ -1442,10 +1442,10 @@ cdef inline inner_trace_callback(
14421442
for i in range(size):
14431443
if data[i]:
14441444
# block_hash = hash_bytecode(<PyObject *>py_bytes_obj, data, size)
1445-
block_hash = PyObject_Hash(py_bytes_obj)
1445+
block_hash = hash(py_bytes_obj)
14461446
break
14471447
else: # fallback for Cython functions
1448-
block_hash = PyObject_Hash(code)
1448+
block_hash = hash(code)
14491449

14501450
code_hash = compute_line_hash(block_hash, lineno)
14511451

0 commit comments

Comments
 (0)