[libcxx] r239160 - Avoid C-style cast.

Joerg Sonnenberger joerg at bec.de
Fri Jun 5 08:54:27 PDT 2015


Author: joerg
Date: Fri Jun  5 10:54:26 2015
New Revision: 239160

URL: http://llvm.org/viewvc/llvm-project?rev=239160&view=rev
Log:
Avoid C-style cast.

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=239160&r1=239159&r2=239160&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Fri Jun  5 10:54:26 2015
@@ -1657,7 +1657,7 @@ codecvt<wchar_t, char, mbstate_t>::do_in
             frm_nxt = frm;
             return frm_nxt == frm_end ? ok : partial;
         }
-        if (n == (size_t)-1)
+        if (n == size_t(-1))
             return error;
         to_nxt += n;
         if (to_nxt == to_end)





More information about the cfe-commits mailing list