From 153fc823badbed9c3acc066829568182c64ca466 Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Tue, 29 Sep 2026 20:10:27 -0700 Subject: [PATCH] fix: add parentheses to NaN macros in `constants/float*/nan` --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../float32/nan/include/stdlib/constants/float32/nan.h | 2 +- .../float64/nan/include/stdlib/constants/float64/nan.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/nan/include/stdlib/constants/float32/nan.h b/lib/node_modules/@stdlib/constants/float32/nan/include/stdlib/constants/float32/nan.h index 00c7e743b875..dd28a95c585c 100644 --- a/lib/node_modules/@stdlib/constants/float32/nan/include/stdlib/constants/float32/nan.h +++ b/lib/node_modules/@stdlib/constants/float32/nan/include/stdlib/constants/float32/nan.h @@ -22,6 +22,6 @@ /** * Macro for single-precision floating-point NaN. */ -#define STDLIB_CONSTANT_FLOAT32_NAN 0.0f/0.0f +#define STDLIB_CONSTANT_FLOAT32_NAN ( 0.0f / 0.0f ) #endif // !STDLIB_CONSTANTS_FLOAT32_NAN_H diff --git a/lib/node_modules/@stdlib/constants/float64/nan/include/stdlib/constants/float64/nan.h b/lib/node_modules/@stdlib/constants/float64/nan/include/stdlib/constants/float64/nan.h index 6f61f1486072..f852f5bd0b96 100644 --- a/lib/node_modules/@stdlib/constants/float64/nan/include/stdlib/constants/float64/nan.h +++ b/lib/node_modules/@stdlib/constants/float64/nan/include/stdlib/constants/float64/nan.h @@ -22,6 +22,6 @@ /** * Macro for double-precision floating-point NaN. */ -#define STDLIB_CONSTANT_FLOAT64_NAN 0.0/0.0 +#define STDLIB_CONSTANT_FLOAT64_NAN ( 0.0 / 0.0 ) #endif // !STDLIB_CONSTANTS_FLOAT64_NAN_H