Skip to content

Commit 20920fc

Browse files
committed
fix switch syntax error
1 parent 7bb2c20 commit 20920fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/optimizer_symbols.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ _PyUOpSymPrint(JitOptRef ref)
113113
case JIT_SYM_COMPACT_INT:
114114
printf("<compact_int at %p>", (void *)sym);
115115
break;
116-
case JIT_SYM_SLOTS_TAG:
116+
case JIT_SYM_SLOTS_TAG: {
117117
PyTypeObject *slots_type = _PyType_LookupByVersion(sym->slots.type_version);
118118
if (slots_type) {
119119
printf("<%s slots[%d] v%u at %p>", slots_type->tp_name, sym->slots.num_slots, sym->slots.type_version, (void *)sym);
120120
} else {
121121
printf("<slots[%d] v%u at %p>", sym->slots.num_slots, sym->slots.type_version, (void *)sym);
122122
}
123123
break;
124+
}
124125
default:
125126
printf("<tag=%d at %p>", sym->tag, (void *)sym);
126127
break;

0 commit comments

Comments
 (0)