diff --git a/thunk.h b/thunk.h
index 97b441a0b4fa061985b9139bc72179a486d68e47..9a06847b68c7c420ca30e68b29f8fd1999c527a8 100644
--- a/thunk.h
+++ b/thunk.h
@@ -77,7 +77,7 @@
 #endif
 
 #define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)
-#define HOST_LONG_SIZE (TARGET_LONG_BITS / 8)
+#define HOST_LONG_SIZE (HOST_LONG_BITS / 8)
 
 static inline uint16_t bswap16(uint16_t x)
 {