summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-24 07:31:12 -0600
committerKarl Williamson <khw@cpan.org>2021-07-30 06:11:46 -0600
commit5b68aa4bccb2c3e8641c6b2eee8431701fda7c4e (patch)
treeee6eb468db9cece6af1993320f526fb7e9dd70c7 /vms
parentb74cfaffad2529c0c699eaa4462c03fbd7fed423 (diff)
downloadperl-5b68aa4bccb2c3e8641c6b2eee8431701fda7c4e.tar.gz
vms.c: Save '&' instrs by casting to U8
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vms/vms.c b/vms/vms.c
index abdbe11bfe..6c9fbc8ac0 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;