From d73896f6df8442286d6fdb3915582218fee50656 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 24 Jul 2021 07:30:53 -0600 Subject: [PATCH] util.h: Save a '&' instr by casting to U8 --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index ae6f1034b8b9..91ee3d2667db 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 */