Skip to content

Commit

Permalink
util.h: Save a '&' instr by casting to U8
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jul 24, 2021
1 parent 90c6f40 commit d73896f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.h
Expand Up @@ -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 */
Expand Down

0 comments on commit d73896f

Please sign in to comment.