summaryrefslogtreecommitdiff
path: root/libc/src/stdlib/strtod.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <nickdesaulniers@users.noreply.github.com>2024-03-28 08:43:11 -0700
committerGitHub <noreply@github.com>2024-03-28 08:43:11 -0700
commit7789ec067dfcb07cc1f2222f48d9bb8e004c0d72 (patch)
tree312a180fe22f9b7025598e7bc1f70ad5c12388ca /libc/src/stdlib/strtod.cpp
parent152fcf6e77c9b83ac5cae1c0d7c0a9cf5680c7bd (diff)
[libc] s/NULL/nullptr (#86867)
Otherwise we need to pull in stddef.h for the declaration of NULL.
Diffstat (limited to 'libc/src/stdlib/strtod.cpp')
-rw-r--r--libc/src/stdlib/strtod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/stdlib/strtod.cpp b/libc/src/stdlib/strtod.cpp
index db5e0edefb5b..461f7feb5bf6 100644
--- a/libc/src/stdlib/strtod.cpp
+++ b/libc/src/stdlib/strtod.cpp
@@ -19,7 +19,7 @@ LLVM_LIBC_FUNCTION(double, strtod,
if (result.has_error())
libc_errno = result.error;
- if (str_end != NULL)
+ if (str_end != nullptr)
*str_end = const_cast<char *>(str + result.parsed_len);
return result.value;