Skip to content

Commit f00cc7f

Browse files
committed
Auto-generated commit
1 parent e9ca569 commit f00cc7f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

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

7-
## Unreleased (2026-04-20)
7+
## Unreleased (2026-04-21)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`e386223`](https://github.com/stdlib-js/stdlib/commit/e3862232d075065e24d38ab17c4a5676d99eeb13) - **chore:** clean-up native wrappers to ensure consistency with documented return value _(by Athan Reines)_
1516
- [`f3dfe11`](https://github.com/stdlib-js/stdlib/commit/f3dfe11d51efdea95678b1d4a4c3f246d7883598) - **docs:** update descriptions _(by Athan Reines)_
1617

1718
</details>

lib/native.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ var addon = require( './../src/addon.node' );
4343
*/
4444
function wrapper( v ) {
4545
if ( isComplex128Array( v ) ) {
46-
v = reinterpret( v, 0 );
46+
addon( reinterpret( v, 0 ) );
47+
} else {
48+
addon( v );
4749
}
48-
addon( v );
4950
return v;
5051
}
5152

0 commit comments

Comments
 (0)