Index: runtime/platform/globals.h |
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h |
index 148343e229a4df81e88b22af9b832bdeadfc0aa9..f56c0205e437a79a5eb5d88d8a818c02fc001b77 100644 |
--- a/runtime/platform/globals.h |
+++ b/runtime/platform/globals.h |
@@ -448,7 +448,13 @@ typedef intptr_t word; |
typedef uintptr_t uword; |
// Size of a class id. |
+#if defined(ARCH_IS_32_BIT) |
typedef uint16_t classid_t; |
+#elif defined(ARCH_IS_64_BIT) |
+typedef uint32_t classid_t; |
+#else |
+#error Unexpected architecture word size |
+#endif |
// Byte sizes. |
const int kWordSize = sizeof(word); |