From 20226dd566902ffd9643cb5e918a5f2dcf3d3577 Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Sat, 6 Jan 2018 18:31:01 +0700 Subject: [PATCH] pawndisasm: Fix 'switch' argument --- source/compiler/pawndisasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/pawndisasm.c b/source/compiler/pawndisasm.c index de0cbc3..f5ec6f4 100644 --- a/source/compiler/pawndisasm.c +++ b/source/compiler/pawndisasm.c @@ -355,7 +355,7 @@ cell do_sysreq(FILE *ftxt,const cell *params,cell opcode,cell cip) cell do_switch(FILE *ftxt,const cell *params,cell opcode,cell cip) { print_opcode(ftxt,opcode,cip); - fprintf(ftxt,"%08"PRIxC"\n",*params+cip); + fprintf(ftxt,"%08"PRIxC"\n",*params); return 2; }