[MLton-commit] r4311

Matthew Fluet MLton@mlton.org
Thu, 26 Jan 2006 17:54:18 -0800


Added assert on signedness of char
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h

----------------------------------------------------------------------

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2006-01-27 01:19:15 UTC (rev 4310)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2006-01-27 01:54:17 UTC (rev 4311)
@@ -52,6 +52,7 @@
 COMPILE_TIME_ASSERT(CHAR_BIT__is_eight, CHAR_BIT == 8);
 COMPILE_TIME_ASSERT(sizeof_float__is_four, sizeof(float) == 4);
 COMPILE_TIME_ASSERT(sizeof_double__is_eight, sizeof(double) == 8);
+COMPILE_TIME_ASSERT(char__is_signed, (double)((char)(-1)) < 0);
 
 #include <fcntl.h>
 #include <unistd.h>