summaryrefslogtreecommitdiff
path: root/uscript
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-07 10:46:46 -0400
committeriamcheeseman <[email protected]>2026-04-07 10:46:46 -0400
commit6157e460ab9004867c71ceb3e72c1fbad530928b (patch)
treef14f0f274cb9cf5e7f218e8418485867a0b00153 /uscript
parent6d30c64216cd4d0b1b2a20a167d85c7fc6534378 (diff)
microscript: remove redundant case in bytecode debug
Diffstat (limited to 'uscript')
-rw-r--r--uscript/us_debug.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/uscript/us_debug.c b/uscript/us_debug.c
index d31669b..d4c6cdf 100644
--- a/uscript/us_debug.c
+++ b/uscript/us_debug.c
@@ -46,15 +46,7 @@ int print_instruction(struct us_proto *proto, int idx)
case BC_SET_UPVAL:
case BC_GET_UPVAL:
case BC_SET_LOCAL:
- case BC_GET_LOCAL: {
- int local_idx = proto->bytecode[idx + 1];
- fprintf(
- stderr,
- "%d\n",
- local_idx
- );
- return idx + 2;
- }
+ case BC_GET_LOCAL:
case BC_CALL:
case BC_SMALL_INT: {
fprintf(