We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1023846 commit aaf5776Copy full SHA for aaf5776
src/util/config.cpp
@@ -9,6 +9,7 @@ Author: Daniel Kroening, [email protected]
9
#include "config.h"
10
11
#include <cstdlib>
12
+#include <limits>
13
14
#include "namespace.h"
15
#include "symbol_table.h"
@@ -949,7 +950,10 @@ bool configt::set(const cmdlinet &cmdline)
949
950
assert(ansi_c.pointer_width==sizeof(void *)*8);
951
assert(ansi_c.single_width==sizeof(float)*8);
952
assert(ansi_c.double_width==sizeof(double)*8);
- 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()));
957
958
#ifndef _WIN32
959
// On Windows, long double width varies by compiler
0 commit comments