Cleanup file compare statement

This commit is contained in:
Alex Voinea 2019-11-26 14:10:44 +02:00
parent a7f2e640e0
commit f5bdbcc0bd
No known key found for this signature in database
GPG Key ID: F5034E7CFCF2F973
1 changed files with 2 additions and 2 deletions

View File

@ -868,9 +868,9 @@ void CardReader::presort() {
getfilename_simple(positions[sort_order[j - gap]]);
char *name2 = LONGEST_FILENAME; // use the string in-place
#if HAS_FOLDER_SORTING
for (; j >= gap && ((sdSort == SD_SORT_TIME && _SORT_CMP_TIME_DIR(FOLDER_SORTING)) || (sdSort == SD_SORT_ALPHA && _SORT_CMP_DIR(FOLDER_SORTING)));)
for (; j >= gap && ((sdSort == SD_SORT_TIME)?(_SORT_CMP_TIME_DIR(FOLDER_SORTING)):(_SORT_CMP_DIR(FOLDER_SORTING)));)
#else
for (; j >= gap && ((sdSort == SD_SORT_TIME && _SORT_CMP_TIME_NODIR()) || (sdSort == SD_SORT_ALPHA && _SORT_CMP_NODIR()));)
for (; j >= gap && ((sdSort == SD_SORT_TIME)?(_SORT_CMP_TIME_NODIR()):(_SORT_CMP_NODIR()));)
#endif
{
sort_order[j] = sort_order[j - gap];