1
0
mirror of https://github.com/simh/simh.git synced 2026-02-17 04:58:14 +00:00

3b2: Coverity issue cleanup

This commit is contained in:
Seth Morabito
2017-11-30 16:30:53 +00:00
parent 0293d7f4af
commit 0a00d8066a
3 changed files with 9 additions and 2 deletions

View File

@@ -2037,7 +2037,7 @@ t_stat sim_instr(void)
R[NUM_PC] = cpu_effective_address(dst);
continue;
case LLSW3:
result = cpu_read_op(src2) << (cpu_read_op(src1) & 0x1f);
result = (t_uint64)cpu_read_op(src2) << (cpu_read_op(src1) & 0x1f);
cpu_write_op(dst, (uint32)(result & WORD_MASK));
cpu_set_nz_flags((uint32)(result & WORD_MASK), dst);
break;