Skip to content

Commit

Permalink
make a case of find set boolean flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Dec 21, 2023
1 parent 7ff79e9 commit bf67be4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/algorithm/dyadic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,9 @@ impl<T: ArrayValue> Array<T> {
}
Err(_) => {
let data = cowslice![0; searched.element_count()];
return Ok(Array::new(searched.shape.clone(), data));
let mut arr = Array::new(searched.shape.clone(), data);
arr.meta_mut().flags.set(ArrayFlags::BOOLEAN, true);
return Ok(arr);
}
}
}
Expand Down

0 comments on commit bf67be4

Please sign in to comment.