Skip to content

Commit 14ca6f1

Browse files
committed
Auto-generated commit
1 parent 50d5e5c commit 14ca6f1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-01-19)
7+
## Unreleased (2025-01-20)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`7403869`](https://github.com/stdlib-js/stdlib/commit/7403869fadcd39b42c3e1a6f687f712ae77a286d) - **refactor:** use argv float instead of double _(by Philipp Burckhardt)_
2526
- [`452ba64`](https://github.com/stdlib-js/stdlib/commit/452ba64c898cec9c526ae2201aa149086347ec8e) - **refactor:** update `math/base/assert/is-integerf` to follow latest project conventions [(#4629)](https://github.com/stdlib-js/stdlib/pull/4629) _(by Vivek Maurya)_
2627
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2728
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@stdlib/math-base-special-floorf",
4242
"@stdlib/napi-export",
4343
"@stdlib/napi-argv",
44-
"@stdlib/napi-argv-double",
44+
"@stdlib/napi-argv-float",
4545
"@stdlib/napi-create-int32"
4646
]
4747
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"dependencies": {
4343
"@stdlib/math-base-special-floorf": "^0.2.2",
4444
"@stdlib/napi-argv": "^0.2.2",
45-
"@stdlib/napi-argv-double": "^0.2.1",
45+
"@stdlib/napi-argv-float": "^0.2.2",
4646
"@stdlib/napi-create-int32": "^0.0.2",
4747
"@stdlib/napi-export": "^0.2.2",
4848
"@stdlib/number-float64-base-to-float32": "^0.2.2",

src/addon.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_integerf.h"
2020
#include "stdlib/napi/argv.h"
21-
#include "stdlib/napi/argv_double.h"
21+
#include "stdlib/napi/argv_float.h"
2222
#include "stdlib/napi/create_int32.h"
2323
#include "stdlib/napi/export.h"
2424
#include <node_api.h>
@@ -33,8 +33,8 @@
3333
*/
3434
static napi_value addon( napi_env env, napi_callback_info info ) {
3535
STDLIB_NAPI_ARGV( env, info, argv, argc, 1 );
36-
STDLIB_NAPI_ARGV_DOUBLE( env, x, argv, 0 );
37-
STDLIB_NAPI_CREATE_INT32( env, (int32_t)stdlib_base_is_integerf( (float)x ), out );
36+
STDLIB_NAPI_ARGV_FLOAT( env, x, argv, 0 );
37+
STDLIB_NAPI_CREATE_INT32( env, (int32_t)stdlib_base_is_integerf( x ), out );
3838
return out;
3939
}
4040

0 commit comments

Comments
 (0)