diff --git a/sorting/selection_sort_recursive.c b/sorting/selection_sort_recursive.c index 0c151961..660a32a8 100644 --- a/sorting/selection_sort_recursive.c +++ b/sorting/selection_sort_recursive.c @@ -18,7 +18,7 @@ */ void swap(int8_t *first, int8_t *second) { - uint8_t temp = *first; + int8_t temp = *first; *first = *second; *second = temp; }