[libcxx] r290473 - Fix missed sign-compare warning
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 23 16:44:21 PST 2016
Author: ericwf
Date: Fri Dec 23 18:44:20 2016
New Revision: 290473
URL: http://llvm.org/viewvc/llvm-project?rev=290473&view=rev
Log:
Fix missed sign-compare warning
Modified:
libcxx/trunk/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp
Modified: libcxx/trunk/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp?rev=290473&r1=290472&r2=290473&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp Fri Dec 23 18:44:20 2016
@@ -27,7 +27,7 @@ int main()
// interesting state.
Myconv myconv;
myconv.from_bytes("\xF1\x80\x80\x83");
- const int old_converted = myconv.converted();
+ const auto old_converted = myconv.converted();
assert(myconv.converted() == 4);
// move construct a new converter and make sure the state is the same.
Myconv myconv2(std::move(myconv));
More information about the cfe-commits
mailing list