[libc-commits] [libc] [libc] Use int in a64l instead of int32_t. (PR #150034)

via libc-commits libc-commits at lists.llvm.org
Tue Jul 22 08:09:17 PDT 2025


================
@@ -44,10 +42,10 @@ constexpr static int32_t b64_char_to_int(char ch) {
 LLVM_LIBC_FUNCTION(long, a64l, (const char *s)) {
   // the standard says to only use up to 6 characters.
   constexpr size_t MAX_LENGTH = 6;
-  int32_t result = 0;
+  int result = 0;
----------------
lntue wrote:

I see the comment at the beginning of the function says writing it to the low 32 bits, so maybe that's the reason?
@michaelrj-google 

https://github.com/llvm/llvm-project/pull/150034


More information about the libc-commits mailing list