8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c38f5a commit dbb5c77Copy full SHA for dbb5c77
Objects/codeobject.c
@@ -1860,10 +1860,10 @@ code_hash(PyCodeObject *co)
1860
SCRAMBLE_IN(co->co_firstlineno);
1861
SCRAMBLE_IN(Py_SIZE(co));
1862
for (int i = 0; i < Py_SIZE(co); i++) {
1863
- _Py_CODEUNIT co_instr = _PyCode_CODE(co)[i];
1864
- _Py_SET_OPCODE(co_instr, _PyOpcode_Deopt[_Py_OPCODE(co_instr)]);
1865
- SCRAMBLE_IN(co_instr);
1866
- i += _PyOpcode_Caches[_Py_OPCODE(co_instr)];
+ int deop = _PyOpcode_Deopt[_Py_OPCODE(_PyCode_CODE(co)[i])];
+ SCRAMBLE_IN(deop);
+ SCRAMBLE_IN(_Py_OPARG(_PyCode_CODE(co)[i]));
+ i += _PyOpcode_Caches[deop];
1867
}
1868
if ((Py_hash_t)uhash == -1) {
1869
return -2;
0 commit comments