summaryrefslogtreecommitdiff
path: root/uscript/us_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'uscript/us_debug.c')
-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(