[libc-commits] [PATCH] D108845: [libc][NFC] Fix onre more -Wconversion warning in strtoul test code.

Roland McGrath via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Aug 27 14:12:19 PDT 2021


mcgrathr created this revision.
mcgrathr added a reviewer: michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added a project: libc-project.
mcgrathr requested review of this revision.

The last change missed one spot.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108845

Files:
  libc/test/src/stdlib/strtoul_test.cpp


Index: libc/test/src/stdlib/strtoul_test.cpp
===================================================================
--- libc/test/src/stdlib/strtoul_test.cpp
+++ libc/test/src/stdlib/strtoul_test.cpp
@@ -227,7 +227,7 @@
             } else {
               errno = 0;
               ASSERT_EQ(__llvm_libc::strtoul(small_string, nullptr, base),
-                        first_digit);
+                        static_cast<unsigned long int>(first_digit));
               ASSERT_EQ(errno, 0);
             }
           } else {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108845.369183.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210827/fc53d24d/attachment.bin>


More information about the libc-commits mailing list