Settings: fixed defaultSign, it only applies to char

This commit is contained in:
Daniel Marjamäki 2016-01-31 14:40:06 +01:00
parent 988918c9bc
commit 5784aec407
1 changed files with 2 additions and 2 deletions

View File

@ -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;