Skip to content

Commit fb6fb04

Browse files
authored
fix: update variable type declarations in math/base/assert/int32-is-odd
PR-URL: #1935 Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
1 parent 0616f00 commit fb6fb04

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/math/base/assert/int32-is-odd/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ out = stdlib_base_int32_is_odd( -2 );
123123

124124
The function accepts the following arguments:
125125

126-
- **x**: `[in] double` input value.
126+
- **x**: `[in] int32_t` input value.
127127

128128
```c
129-
bool stdlib_base_int32_is_odd( const double x );
129+
bool stdlib_base_int32_is_odd( const int32_t x );
130130
```
131131
132132
</section>

lib/node_modules/@stdlib/math/base/assert/int32-is-odd/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var addon = require( './../src/addon.node' );
3030
* Tests if a 32-bit integer is odd.
3131
*
3232
* @private
33-
* @param {number} x - value to test
33+
* @param {integer32} x - value to test
3434
* @returns {boolean} boolean indicating whether the number is odd
3535
*
3636
* @example

lib/node_modules/@stdlib/math/base/assert/int32-is-odd/src/addon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
5959
return NULL;
6060
}
6161

62-
double x;
63-
status = napi_get_value_double( env, argv[ 0 ], &x );
62+
int32_t x;
63+
status = napi_get_value_int32( env, argv[ 0 ], &x );
6464
assert( status == napi_ok );
6565

6666
bool result = stdlib_base_int32_is_odd( x );

0 commit comments

Comments
 (0)