Skip to content

Commit 95e9b66

Browse files
Update main.js
Co-authored-by: Muhammad Haris <101793258+headlessNode@users.noreply.github.com> Signed-off-by: Loay Ahmed <loayahmed304@gmail.com>
1 parent 0c3a27c commit 95e9b66

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/base/where/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/where/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function where( arrays ) { // eslint-disable-line max-statements
367367
}
368368
// Determine whether we are casting a real data type to a complex data type and we need to use a specialized accessor (note: we don't support the other way, complex-to-real, as this is not an allowed (mostly) safe cast; note: we cannot create a specialized view for assigning only real components, as the imaginary component for each element in `y` also needs to be set to zero and while we could perform two passes, it's not clear it's worth the effort)...
369369
else if ( isComplexDataType( o.dtype ) ) {
370-
if ( isRealDataType( x.dtype )) {
370+
if ( isRealDataType( x.dtype ) ) {
371371
x.accessorProtocol = true;
372372
x.accessors[ 0 ] = castReturn( x.accessors[ 0 ], 2, complexCtors( String( o.dtype ) ) ); // eslint-disable-line max-len
373373
}

0 commit comments

Comments
 (0)