diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2019-06-17 13:41:14 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2019-06-17 13:41:14 +0000 |
| commit | 2dda1ff03805db45ec51893d759d7eea61172366 (patch) | |
| tree | 0a11ce5bf8980644bc39a824e38d46b05da2030f /libcxx/src | |
| parent | 1bd3d00e7e5a299cefb2cd4759de30aafd7d1c7c (diff) | |
| download | bcm5719-llvm-2dda1ff03805db45ec51893d759d7eea61172366.tar.gz bcm5719-llvm-2dda1ff03805db45ec51893d759d7eea61172366.zip | |
Fix a '>= 0' test on unsigned that I inadvertantly introduced. Now correctly '!= 0'. Thanks to Arthur for the catch
llvm-svn: 363557
Diffstat (limited to 'libcxx/src')
| -rw-r--r-- | libcxx/src/locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index ca0a1c9b15f..5b29ee44868 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -4381,7 +4381,7 @@ __check_grouping(const string& __grouping, unsigned* __g, unsigned* __g_end, { // if the grouping pattern is empty _or_ there are no grouping bits, then do nothing // we always have at least a single entry in [__g, __g_end); the end of the input sequence - if (__grouping.size() >= 0 && __g_end - __g > 1) + if (__grouping.size() != 0 && __g_end - __g > 1) { reverse(__g, __g_end); const char* __ig = __grouping.data(); |

