diff options
Diffstat (limited to 'support/localeinfo.c')
-rw-r--r-- | support/localeinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/localeinfo.c b/support/localeinfo.c index 694735e2..159ad073 100644 --- a/support/localeinfo.c +++ b/support/localeinfo.c @@ -1,6 +1,6 @@ /* locale information - Copyright 2016-2019 Free Software Foundation, Inc. + Copyright 2016-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -81,7 +81,7 @@ using_simple_locale (bool multibyte) where the native order is the collating-sequence order but there are multi-character collating elements. */ for (int i = 0; i < UCHAR_MAX; i++) - if (strcoll (((char []) {i, 0}), ((char []) {i + 1, 0})) <= 0) + if (0 <= strcoll (((char []) {i, 0}), ((char []) {i + 1, 0}))) return false; return true; |