summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-24 07:30:53 -0600
committerKarl Williamson <khw@cpan.org>2021-07-30 06:11:46 -0600
commitb74cfaffad2529c0c699eaa4462c03fbd7fed423 (patch)
treec9bd1d054f914add14d504ec57e85daefadac9b1 /util.h
parent4c08ae9e2fd6632af4c6d31eb2b2491266ca2586 (diff)
downloadperl-b74cfaffad2529c0c699eaa4462c03fbd7fed423.tar.gz
util.h: Save a '&' instr by casting to U8
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index ae6f1034b8..91ee3d2667 100644
--- a/util.h
+++ b/util.h
@@ -203,7 +203,7 @@ typedef struct {
/* if in the future "" and NULL must be separated, XSVERLEN would be 0
means arg not present, 1 is empty string/null byte */
/* (((key) & 0x0000FF00) >> 8) is less efficient on Visual C */
-#define HS_GETXSVERLEN(key) ((key) >> 8 & 0xFF)
+#define HS_GETXSVERLEN(key) ((U8) ((key) >> 8))
#define HS_GETAPIVERLEN(key) ((key) & HSm_APIVERLEN)
/* internal to util.h macro to create a packed handshake key, all args must be constants */