Skip to content

Commit 5784aec

Browse files
committed
Settings: fixed defaultSign, it only applies to char
1 parent 988918c commit 5784aec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ bool Settings::platform(PlatformType type)
175175
sizeof_size_t = sizeof(std::size_t);
176176
sizeof_pointer = sizeof(void *);
177177
{
178-
int x = 2;
179-
defaultSign = (-10 / x == -5) ? 's' : 'u';
178+
char x = -1;
179+
defaultSign = (x < 0) ? 's' : 'u';
180180
}
181181
char_bit = 8;
182182
short_bit = char_bit * sizeof_short;

0 commit comments

Comments
 (0)