diff options
| author | Nick Desaulniers <nickdesaulniers@users.noreply.github.com> | 2024-03-28 08:43:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-28 08:43:11 -0700 |
| commit | 7789ec067dfcb07cc1f2222f48d9bb8e004c0d72 (patch) | |
| tree | 312a180fe22f9b7025598e7bc1f70ad5c12388ca /libc/src/stdlib/strtod.cpp | |
| parent | 152fcf6e77c9b83ac5cae1c0d7c0a9cf5680c7bd (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.cpp | 2 |
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; |
