Skip to content

Commit

Permalink
fix error in comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-miotk committed Jan 15, 2025
1 parent c1cd58d commit 7a435cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ inline void FUNC(quickSortIterative)(__global Box* arr, int l, int h) {

// If there are elements on right side of pivot,
// then push right side to stack
if (p + 1 < h && l < PRE_NMS_TOPN) {
if (p + 1 < h && p + 1 < PRE_NMS_TOPN) {
if (top >= (kStackSize - 1)) {
FUNC_CALL(bubbleSortIterative)(arr, p + 1, h);
} else {
Expand Down

0 comments on commit 7a435cc

Please sign in to comment.