Settings: fixed defaultSign, it only applies to char
This commit is contained in:
parent
988918c9bc
commit
5784aec407
|
@ -175,8 +175,8 @@ bool Settings::platform(PlatformType type)
|
|||
sizeof_size_t = sizeof(std::size_t);
|
||||
sizeof_pointer = sizeof(void *);
|
||||
{
|
||||
int x = 2;
|
||||
defaultSign = (-10 / x == -5) ? 's' : 'u';
|
||||
char x = -1;
|
||||
defaultSign = (x < 0) ? 's' : 'u';
|
||||
}
|
||||
char_bit = 8;
|
||||
short_bit = char_bit * sizeof_short;
|
||||
|
|
Loading…
Reference in New Issue