Packages: fix file type check

This commit is contained in:
李通洲
2025-01-18 19:34:50 +08:00
parent f76981c241
commit 5137a9e7a4
+1 -1
View File
@@ -102,7 +102,7 @@ uint32_t ffPackagesGetNumElements(const char* dirname, bool isdir)
#ifndef __sun
if(entry->d_type != DT_UNKNOWN && entry->d_type != DT_LNK)
ok = entry->d_type == isdir ? DT_DIR : DT_REG;
ok = entry->d_type == (isdir ? DT_DIR : DT_REG);
else
#endif
{