From 99b0ebdfa6e05b202e4ce900f95aef12f2214f69 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 2 Nov 2023 20:35:47 +0000 Subject: Small fixes --- lib/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/base.h') diff --git a/lib/base.h b/lib/base.h index e0cabc0..1eaf9ba 100644 --- a/lib/base.h +++ b/lib/base.h @@ -77,7 +77,7 @@ typedef enum #define SWORD_SIZE sizeof(s_word) // Macros to extract the nth byte or nth hword from a word -#define WORD_NTH_BYTE(WORD, N) (((WORD) >> ((N)*8)) & 0xff) +#define WORD_NTH_BYTE(WORD, N) (((WORD) >> ((N)*8)) & 0xFF) #define WORD_NTH_HWORD(WORD, N) (((WORD) >> ((N)*2)) & 0xFFFFFFFF) // Assume array contains 4 bytes. -- cgit v1.2.3-13-gbd6f