diff --git a/include/compiler.h b/include/compiler.h
index 54999a7..17f4e93 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -124,10 +124,8 @@ typedef unsigned int uint;
 #endif
 
 /* Types for `void *' pointers. */
-#if __WORDSIZE == 64
+#if __WORDSIZE == 64 || __WORDSIZE == 32
 typedef unsigned long int       uintptr_t;
-#elif __WORDSIZE == 32
-typedef unsigned int            uintptr_t;
 #else
 #error "__WORDSIZE has unexpected value"
 #endif
