Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 19, 2024
1 parent 976c4bb commit 72b6b4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,16 @@ This release closes the following issue:

<!-- /.features -->

<section class="bug-fixes">

##### Bug Fixes

- [`ff8652b`](https://github.com/stdlib-js/stdlib/commit/ff8652b09457da367683ff80fecdf787b470207f) - reassign `condition` to ensure proper iteration when a BooleanArray

</section>

<!-- /.bug-fixes -->

</details>

</section>
Expand Down Expand Up @@ -1996,6 +2006,7 @@ A total of 13 people contributed to this release. Thank you to the following con

<details>

- [`ff8652b`](https://github.com/stdlib-js/stdlib/commit/ff8652b09457da367683ff80fecdf787b470207f) - **fix:** reassign `condition` to ensure proper iteration when a BooleanArray _(by Athan Reines)_
- [`2827035`](https://github.com/stdlib-js/stdlib/commit/2827035933c44ebb301a44200ff9cd5ad73e9ef0) - **feat:** add `where` to namespace _(by Athan Reines)_
- [`52e6dc7`](https://github.com/stdlib-js/stdlib/commit/52e6dc7a9aedf2f4e7ef0e7147c973533a830710) - **feat:** add `array/base/where` _(by Athan Reines)_
- [`1093407`](https://github.com/stdlib-js/stdlib/commit/1093407be970c29959b40c2537166b4db897d070) - **fix:** add missing type _(by Athan Reines)_
Expand Down
5 changes: 3 additions & 2 deletions base/where/lib/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function assign( condition, x, y, out, stride, offset ) {

co = arraylike2object( condition );
if ( isBooleanDataType( co.dtype ) ) {
co = arraylike2object( reinterpretBool( condition, 0 ) );
condition = reinterpretBool( condition, 0 );
co = arraylike2object( condition );
}
xo = arraylike2object( x );
yo = arraylike2object( y );
Expand All @@ -305,7 +306,7 @@ function assign( condition, x, y, out, stride, offset ) {
isBooleanDataType( yo.dtype ) &&
isBooleanDataType( oo.dtype )
) {
indexed( N, co.data, reinterpretBool( x, 0 ), reinterpretBool( y, 0 ), reinterpretBool( out, 0 ), stride, offset ); // eslint-disable-line max-len
indexed( N, condition, reinterpretBool( x, 0 ), reinterpretBool( y, 0 ), reinterpretBool( out, 0 ), stride, offset ); // eslint-disable-line max-len
return out;
}
if (
Expand Down

0 comments on commit 72b6b4e

Please sign in to comment.