diff options
author | Alex Brachet <abrachet@google.com> | 2022-12-13 05:38:09 +0000 |
---|---|---|
committer | Alex Brachet <abrachet@google.com> | 2022-12-13 05:38:09 +0000 |
commit | 51a523e32ffba68157ed732d39c59fcb2dbf6cbe (patch) | |
tree | abbea402a3654615286cfd6c2b24c3bef3bdc46f /libc | |
parent | f6224467690b0e49f37f4b33f6a9d7a434e88de5 (diff) | |
download | llvm-51a523e32ffba68157ed732d39c59fcb2dbf6cbe.zip llvm-51a523e32ffba68157ed732d39c59fcb2dbf6cbe.tar.gz llvm-51a523e32ffba68157ed732d39c59fcb2dbf6cbe.tar.bz2 |
[libc] Use correct type for atol
Diffstat (limited to 'libc')
-rw-r--r-- | libc/src/stdlib/atol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/stdlib/atol.cpp b/libc/src/stdlib/atol.cpp index 713ccfa..d786845 100644 --- a/libc/src/stdlib/atol.cpp +++ b/libc/src/stdlib/atol.cpp @@ -13,7 +13,7 @@ namespace __llvm_libc { LLVM_LIBC_FUNCTION(long, atol, (const char *str)) { - auto result = internal::strtointeger<int>(str, 10); + auto result = internal::strtointeger<long>(str, 10); if (result.has_error()) errno = result.error; |