[libcxx-commits] [PATCH] D90228: [libcxx] Don't truncate intermediates to wchar_t when widening

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 27 07:16:32 PDT 2020


ldionne added inline comments.


================
Comment at: libcxx/include/__locale:1410
             for (const char16_t* __p = __buf; __p < __bn; ++__p, ++__s)
-                *__s = (wchar_t)*__p;
+                *__s = *__p;
             __nb = __nn;
----------------
Do you know why this was added in the first place? Did you try this out on non-windows systems without the cast?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90228/new/

https://reviews.llvm.org/D90228



More information about the libcxx-commits mailing list