diff options
-rw-r--r-- | common/func.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/func.h b/common/func.h index e2cd20fdb3..3d50670e3e 100644 --- a/common/func.h +++ b/common/func.h @@ -73,14 +73,14 @@ void sort(T first, T last) { // Simple selection sort T i(first); for (; i != last; ++i) { - T min(i); + T minElem(i); T j(i); ++j; for (; j != last; ++j) - if (*j < *min) - min = j; - if (min != i) - SWAP(*min, *i); + if (*j < *minElem) + minElem = j; + if (minElem != i) + SWAP(*minElem, *i); } } |