File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Author: Daniel Kroening, kroening@kroening.com
99#include " config.h"
1010
1111#include < cstdlib>
12+ #include < limits>
1213
1314#include " namespace.h"
1415#include " symbol_table.h"
@@ -949,7 +950,10 @@ bool configt::set(const cmdlinet &cmdline)
949950 assert (ansi_c.pointer_width ==sizeof (void *)*8 );
950951 assert (ansi_c.single_width ==sizeof (float )*8 );
951952 assert (ansi_c.double_width ==sizeof (double )*8 );
952- assert (ansi_c.char_is_unsigned ==(static_cast <char >(255 )==255 ));
953+ assert (
954+ ansi_c.char_is_unsigned ==
955+ (static_cast <unsigned char >(std::numeric_limits<char >::max ()) ==
956+ std::numeric_limits<unsigned char >::max ()));
953957
954958 #ifndef _WIN32
955959 // On Windows, long double width varies by compiler
You can’t perform that action at this time.
0 commit comments