mirror of https://github.com/TheAlgorithms/C
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
This commit is contained in:
parent
684b4bc002
commit
c2268d2e8f
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
void swap(int8_t *first, int8_t *second)
|
void swap(int8_t *first, int8_t *second)
|
||||||
{
|
{
|
||||||
uint8_t temp = *first;
|
int8_t temp = *first;
|
||||||
*first = *second;
|
*first = *second;
|
||||||
*second = temp;
|
*second = temp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue