[libcxx-commits] [libcxx] r363557 - Fix a '>= 0' test on unsigned that I inadvertantly introduced. Now correctly '!= 0'. Thanks to Arthur for the catch

Marshall Clow via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 17 06:41:14 PDT 2019


Author: marshall
Date: Mon Jun 17 06:41:14 2019
New Revision: 363557

URL: http://llvm.org/viewvc/llvm-project?rev=363557&view=rev
Log:
Fix a '>= 0' test on unsigned that I inadvertantly introduced. Now correctly '!= 0'. Thanks to Arthur for the catch

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=363557&r1=363556&r2=363557&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Mon Jun 17 06:41:14 2019
@@ -4381,7 +4381,7 @@ __check_grouping(const string& __groupin
 {
 //  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();




More information about the libcxx-commits mailing list