[libcxx-commits] [PATCH] D141623: [SystemZ][z/OS] Fix cityhash lit for EBCDIC

Zibi Sarbino via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 17 07:36:21 PST 2023


zibi updated this revision to Diff 489821.
zibi added a comment.

Change to use an array of integers instead of strings.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141623

Files:
  libcxx/test/libcxx/utilities/utility/__murmur2_or_cityhash.pass.cpp


Index: libcxx/test/libcxx/utilities/utility/__murmur2_or_cityhash.pass.cpp
===================================================================
--- libcxx/test/libcxx/utilities/utility/__murmur2_or_cityhash.pass.cpp
+++ libcxx/test/libcxx/utilities/utility/__murmur2_or_cityhash.pass.cpp
@@ -21,10 +21,10 @@
 #endif
 
 std::string CityHash[] = {
-    {/* "abcdefgh" */ "\x61\x62\x63\x64\x65\x66\x67\x68"},
-    {/* "abcDefgh" */ "\x61\x62\x63\x44\x65\x66\x67\x68"},
-    {/* "CityHash" */ "\x43\x69\x74\x79\x48\x61\x73\x68"},
-    {/* "CitYHash" */ "\x43\x69\x74\x59\x48\x61\x73\x68"},
+    {/* "abcdefgh" */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68},
+    {/* "abcDefgh" */ 0x61, 0x62, 0x63, 0x44, 0x65, 0x66, 0x67, 0x68},
+    {/* "CityHash" */ 0x43, 0x69, 0x74, 0x79, 0x48, 0x61, 0x73, 0x68},
+    {/* "CitYHash" */ 0x43, 0x69, 0x74, 0x59, 0x48, 0x61, 0x73, 0x68},
 };
 
 int main(int, char**) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141623.489821.patch
Type: text/x-patch
Size: 904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230117/6ba86c2c/attachment.bin>


More information about the libcxx-commits mailing list