Skip to content

Commit 08631c9

Browse files
committed
Remove mistaken changes
1 parent b609279 commit 08631c9

File tree

2 files changed

+2
-131
lines changed

2 files changed

+2
-131
lines changed

Tools/cases_generator/abstract_interpreter_generator.py

Lines changed: 0 additions & 129 deletions
This file was deleted.

Tools/cases_generator/stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def push(self, var: StackItem) -> str:
154154
self.top_offset.push(var)
155155
return ""
156156

157-
def flush(self, out: CWriter, default_cast: str ="(PyObject *)") -> None:
157+
def flush(self, out: CWriter) -> None:
158158
for var in self.variables:
159159
if not var.peek:
160-
cast = default_cast if var.type else ""
160+
cast = "(PyObject *)" if var.type else ""
161161
if var.name != "unused" and not var.is_array():
162162
if var.condition:
163163
out.emit(f"if ({var.condition}) ")

0 commit comments

Comments
 (0)