mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-100222: Redefine _Py_CODEUNIT as a union to clarify structure of code unit. (GH-100223)
This commit is contained in:
parent
985a71032b
commit
6997e77bdf
9 changed files with 150 additions and 134 deletions
|
|
@ -205,7 +205,7 @@ class Instruction:
|
|||
else:
|
||||
typ = f"uint{bits}_t "
|
||||
func = f"read_u{bits}"
|
||||
out.emit(f"{typ}{ceffect.name} = {func}(next_instr + {cache_offset});")
|
||||
out.emit(f"{typ}{ceffect.name} = {func}(&next_instr[{cache_offset}].cache);")
|
||||
cache_offset += ceffect.size
|
||||
assert cache_offset == self.cache_offset + cache_adjust
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue