[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 09:46:20 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:

In that case I think `int` type is suitable.

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


More information about the libc-commits mailing list