From 61cfecf1dc42f1bb6bd2db6421a10194139f1024 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Wed, 9 Mar 2022 22:01:47 -0500 Subject: [PATCH] KA10: Clean up some coverity errors. --- PDP10/kx10_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP10/kx10_cpu.c b/PDP10/kx10_cpu.c index c8970f3..1202c13 100644 --- a/PDP10/kx10_cpu.c +++ b/PDP10/kx10_cpu.c @@ -1028,7 +1028,7 @@ t_stat dev_pi(uint32 dev, uint64 *data) { res |= ((uint64)(PIR) << 18); #endif #if !KL - res |= (parity_irq << 15); + res |= ((uint64)parity_irq << 15); #endif *data = res; sim_debug(DEBUG_CONI, &cpu_dev, "CONI PI %012llo\n", *data); @@ -4058,7 +4058,7 @@ t_stat dev_apr(uint32 dev, uint64 *data) { res |= (((FLAGS & PCHNG) != 0) << 6) | (pcchg_irq << 7) ; res |= (clk_flg << 9) | (((uint64)clk_en) << 10) | (nxm_flag << 12); res |= (mem_prot << 13) | (((FLAGS & USER) != 0) << 14) | (user_io << 15); - res |= (push_ovf << 16); + res |= ((uint64)push_ovf << 16); *data = res; sim_debug(DEBUG_CONI, &cpu_dev, "CONI APR %012llo\n", *data); break;