X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=9b36fd89fde9f9505dc54a2093bab49711cbf651;hp=1842eb2a3ea1eb2b08b9663644f575a7b4347256;hb=55df3fa2d7631ed67e46f9433aa7f3a71c18e5e7;hpb=dbbbd3880cc13ee5cf07390fbe1be07121abe613 diff --git a/src/types.h b/src/types.h index 1842eb2a..9b36fd89 100644 --- a/src/types.h +++ b/src/types.h @@ -490,15 +490,15 @@ inline const std::string square_to_string(Square s) { /// Our insertion sort implementation, works with pointers and iterators and is /// guaranteed to be stable, as is needed. template -void sort(K first, K last) +void sort(K begin, K end) { T tmp; K p, q; - for (p = first + 1; p < last; p++) + for (p = begin + 1; p < end; p++) { tmp = *p; - for (q = p; q != first && *(q-1) < tmp; --q) + for (q = p; q != begin && *(q-1) < tmp; --q) *q = *(q-1); *q = tmp; }