From 72081fd95edf5651394878aaddbb93620a98f276 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 24 Jul 2021 07:31:12 -0600 Subject: [PATCH] vms.c: Save '&' instrs by casting to U8 --- vms/vms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vms/vms.c b/vms/vms.c index abdbe11bfec4..6c9fbc8ac0d1 100644 --- a/vms/vms.c +++ b/vms/vms.c @@ -601,8 +601,8 @@ copy_expand_vms_filename_escape(char *outspec, const char *inspec, int *output_c if (scnt == 4) { unsigned int c1, c2; scnt = sscanf(inspec, "%2x%2x", &c1, &c2); - outspec[0] = c1 & 0xff; - outspec[1] = c2 & 0xff; + outspec[0] = (U8) c1; + outspec[1] = (U8) c2; if (scnt > 1) { (*output_cnt) += 2; count += 4;