diff jagcpu_x86.c @ 1594:137dbd05ceab

Fix some issues identified by cppcheck
author Michael Pavone <pavone@retrodev.com>
date Fri, 29 Jun 2018 09:33:23 -0700
parents c1e78a101912
children
line wrap: on
line diff
--- a/jagcpu_x86.c	Thu Jun 28 09:27:05 2018 -0700
+++ b/jagcpu_x86.c	Fri Jun 29 09:33:23 2018 -0700
@@ -102,7 +102,7 @@
 	code_ptr no_delay = code-.cur + 1;
 	jcc(code, CC_NZ, no_delay + 1);
 	ccylces(code, 1);
-	*no_delay = code->cur - (no_delay = 1);
+	*no_delay = code->cur - (no_delay + 1);
 	*no_result = code->cur - (no_result + 1);
 	mov_rr(code, opts->resultreg, opts->writeback, SZ_B);
 }
@@ -122,7 +122,7 @@
 
 uint16_t *translate_jag_inst(uint16_t *stream, jag_cpu_options *opts, uint32_t address)
 {
-	uint16_t inst = *stream
+	uint16_t inst = *stream;
 	++stream;
 	uint16_t opcode = jag_opcode(inst, opts->is_gpu);
 	check_cycles_int(&opts->gen, address);