diff options
Diffstat (limited to 'src/core/IAccessWindow.cpp')
-rw-r--r-- | src/core/IAccessWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/IAccessWindow.cpp b/src/core/IAccessWindow.cpp index 7dfe5db5c5..c73f4e7bb2 100644 --- a/src/core/IAccessWindow.cpp +++ b/src/core/IAccessWindow.cpp @@ -207,8 +207,8 @@ bool AccessWindowRectangle::update_padding_if_needed(const Window &window) return false; } - ARM_COMPUTE_ERROR_ON(window.x().step() * _scale_x == 0); - ARM_COMPUTE_ERROR_ON(window.y().step() * _scale_y == 0); + ARM_COMPUTE_ERROR_ON(_scale_x == 0); + ARM_COMPUTE_ERROR_ON(_scale_y == 0); const int min_x = window.x().start() * _scale_x + _x; const int max_x = (window.x().end() - window.x().step()) * _scale_x + _x + _width; |