Skip to content

Commit 9263173

Browse files
authored
Fix whitespace in generated code
1 parent 2a3c37c commit 9263173

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Python/executor_cases.c.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier2_generator.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ def write_uop(uop: Uop, out: CWriter, stack: Stack) -> None:
123123
for cache in uop.caches:
124124
if cache.name != "unused":
125125
if cache.size == 4:
126-
type = "PyObject *"
126+
type = cast ="PyObject *"
127127
else:
128-
type = f"uint{cache.size*16}_t"
129-
out.emit(f"{type} {cache.name} = ({type})CURRENT_OPERAND();\n")
128+
type = f"uint{cache.size*16}_t "
129+
cast = f"uint{cache.size*16}_t"
130+
out.emit(f"{type}{cache.name} = ({cast})CURRENT_OPERAND();\n")
130131
emit_tokens(out, uop, stack, None, TIER2_REPLACEMENT_FUNCTIONS)
131132
if uop.properties.stores_sp:
132133
for i, var in enumerate(uop.stack.outputs):

0 commit comments

Comments
 (0)