|
@@ -16,20 +16,20 @@ extern arith
|
|
|
|
|
|
extern arith max_int, max_unsigned; /* cstoper.c */
|
|
|
#else NOCROSS
|
|
|
-#define short_size (SZ_SHORT)
|
|
|
-#define word_size (SZ_WORD)
|
|
|
-#define dword_size (2*SZ_WORD)
|
|
|
-#define int_size (SZ_INT)
|
|
|
-#define long_size (SZ_LONG)
|
|
|
-#define float_size (SZ_FLOAT)
|
|
|
-#define double_size (SZ_DOUBLE)
|
|
|
-#define lngdbl_size (SZ_LNGDBL)
|
|
|
-#define pointer_size (SZ_POINTER)
|
|
|
+#define short_size ((arith)SZ_SHORT)
|
|
|
+#define word_size ((arith)SZ_WORD)
|
|
|
+#define dword_size ((arith)2*SZ_WORD)
|
|
|
+#define int_size ((arith)SZ_INT)
|
|
|
+#define long_size ((arith)SZ_LONG)
|
|
|
+#define float_size ((arith)SZ_FLOAT)
|
|
|
+#define double_size ((arith)SZ_DOUBLE)
|
|
|
+#define lngdbl_size ((arith)SZ_LNGDBL)
|
|
|
+#define pointer_size ((arith)SZ_POINTER)
|
|
|
|
|
|
-#if int_size == 2
|
|
|
+#if SZ_INT == 2
|
|
|
#define max_int ((arith)32767)
|
|
|
#define max_unsigned ((arith)65535)
|
|
|
-#else /* int_size == 4 */
|
|
|
+#else /* SZ_INT == 4 */
|
|
|
#define max_int ((arith)2147483647)
|
|
|
#define max_unsigned ((arith)4294967295)
|
|
|
#endif
|