From 02732514e82053d501bac777b0773df85e8bc5f1 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 19 Oct 2020 12:29:53 -0700 Subject: [PATCH] PDP1: Compiler warning cleanup - Avoid potential out of array indexing due to theoretical array reference via signed char index. Likely non functional change. --- PDP1/pdp1_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP1/pdp1_sys.c b/PDP1/pdp1_sys.c index 0c3a2dcf..a07bff22 100644 --- a/PDP1/pdp1_sys.c +++ b/PDP1/pdp1_sys.c @@ -443,7 +443,7 @@ return sp; #define FMTASC(x) ((x) < 040)? "<%03o>": "%c", (x) #define SIXTOASC(x) fiodec_to_ascii[x] -#define ASCTOSIX(x) (ascii_to_fiodec[x] & 077) +#define ASCTOSIX(x) (ascii_to_fiodec[(x) & 0177] & 077) t_stat fprint_sym (FILE *of, t_addr addr, t_value *val, UNIT *uptr, int32 sw)