aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorAlex Brachet <abrachet@google.com>2022-12-13 05:38:09 +0000
committerAlex Brachet <abrachet@google.com>2022-12-13 05:38:09 +0000
commit51a523e32ffba68157ed732d39c59fcb2dbf6cbe (patch)
treeabbea402a3654615286cfd6c2b24c3bef3bdc46f /libc
parentf6224467690b0e49f37f4b33f6a9d7a434e88de5 (diff)
downloadllvm-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.cpp2
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;