Skip to content
Snippets Groups Projects
Commit 20a7768f authored by André Offringa's avatar André Offringa
Browse files

Fix a cast error in the python FlagMask.SetBuffer() method

parent 26959c0a
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ void SetBuffer(aoflagger::FlagMask* flagMask, pybind11::array_t<bool>& values) { ...@@ -113,7 +113,7 @@ void SetBuffer(aoflagger::FlagMask* flagMask, pybind11::array_t<bool>& values) {
const char* rowIn = data + y * stride0; const char* rowIn = data + y * stride0;
bool* rowOut = buffer + y * flagMask->HorizontalStride(); bool* rowOut = buffer + y * flagMask->HorizontalStride();
for (size_t x = 0; x != flagMask->Width(); ++x) { for (size_t x = 0; x != flagMask->Width(); ++x) {
rowOut[x] = *reinterpret_cast<const double*>(rowIn + x * stride1); rowOut[x] = *reinterpret_cast<const bool*>(rowIn + x * stride1);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment