aboutsummaryrefslogtreecommitdiff
path: root/lib/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.h')
-rw-r--r--lib/base.h2
1 files changed, 1 insertions, 1 deletions
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.