Skip to content

Commit cf511ed

Browse files
committed
Fixed struct lacking a semicolon at the end of a declaration
1 parent 779368d commit cf511ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def handle_params(instruction_params):
378378
self.constants[-1] += f"struct {instruction_params[0]}" + " {\n"
379379
for param in params:
380380
self.constants[-1] += self.tab_char * (len(self.instructions_stack) + 1) + param + ";\n"
381-
self.constants[-1] += self.tab_char * len(self.instructions_stack) + "}"
381+
self.constants[-1] += self.tab_char * len(self.instructions_stack) + "};"
382382
self.instructions_list[line_number] = ""
383383

384384

0 commit comments

Comments
 (0)