summaryrefslogtreecommitdiff
path: root/pkmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkmacros.h')
-rw-r--r--pkmacros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkmacros.h b/pkmacros.h
index 5f50836..647a3b7 100644
--- a/pkmacros.h
+++ b/pkmacros.h
@@ -40,9 +40,9 @@
((byte) & 0x02 ? '1' : '0'), \
((byte) & 0x01 ? '1' : '0')
#define PK_TO_BIN_8(u8) PK_TO_BIN(u8)
-#define PK_TO_BIN_16(u16) PK_TO_BIN((u16 >> 8)), PK_TO_BIN(u16 & 0x00FF)
-#define PK_TO_BIN_32(u32) PK_TO_BIN_16((u32 >> 16)), PK_TO_BIN_16(u32 & 0x0000FFFF)
-#define PK_TO_BIN_64(u64) PK_TO_BIN_32((u64 >> 32)), PK_TO_BIN_32(u64 & 0x00000000FFFFFFFF)
+#define PK_TO_BIN_16(u16) PK_TO_BIN((u16 >> 8)), PK_TO_BIN((u16 & 0x00FF))
+#define PK_TO_BIN_32(u32) PK_TO_BIN_16((u32 >> 16)), PK_TO_BIN_16((u32 & 0x0000FFFF))
+#define PK_TO_BIN_64(u64) PK_TO_BIN_32((u64 >> 32)), PK_TO_BIN_32((u64 & 0x00000000FFFFFFFF))
#if defined(__cplusplus)
# define CAFE_BABE(T) reinterpret_cast<T *>(0xCAFEBABE)