Merge pull request #206 from wanqing0421/main

fixed selectorStride bug
This commit is contained in:
PhasicFlow 2025-04-25 20:35:11 +03:30 committed by GitHub
commit cb40e01b7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ pFlow::selectorStridedRange::selectorStridedRange(
end_(dict.getValOrSet<uint32>("end", pStruct.size())),
stride_(dict.getValOrSet<uint32>("stride", 1u))
{
begin_ = max(begin_, 1u);
begin_ = max(begin_, 0u);
end_ = min(end_, static_cast<uint32>(pStruct.size()));
stride_ = max(stride_, 1u);