Skip to content

Commit 6557468

Browse files
authored
Update addon.c
Signed-off-by: JaySoni1 <[email protected]>
1 parent 9947303 commit 6557468

File tree

1 file changed

+6
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/signum/src

1 file changed

+6
-1
lines changed

lib/node_modules/@stdlib/math/base/special/signum/src/addon.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@
1919
#include "stdlib/math/base/special/signum.h"
2020
#include "stdlib/math/base/napi/unary.h"
2121

22-
// Fix: Renamed the wrapper function to avoid shadowing
22+
// Define a wrapper function to avoid shadowing
23+
static double stdlib_base_signum_wrapper( const double x ) {
24+
return stdlib_base_signum( x );
25+
}
26+
27+
// Use the wrapper function in the macro to prevent shadowing issues
2328
STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_signum_wrapper )

0 commit comments

Comments
 (0)