Fix type of parameter

This commit is contained in:
Maschell 2021-09-30 00:26:03 +02:00
parent b00a566726
commit 91b7686e2e

View File

@ -73,11 +73,11 @@ int getNewFileHandleIndex() {
return handle_id; return handle_id;
} }
bool isValidDirHandle(int32_t handle) { bool isValidDirHandle(uint32_t handle) {
return (handle & HANDLE_INDICATOR_MASK) == DIR_HANDLE_MAGIC; return (handle & HANDLE_INDICATOR_MASK) == DIR_HANDLE_MAGIC;
} }
bool isValidFileHandle(int32_t handle) { bool isValidFileHandle(uint32_t handle) {
return (handle & HANDLE_INDICATOR_MASK) == FILE_HANDLE_MAGIC; return (handle & HANDLE_INDICATOR_MASK) == FILE_HANDLE_MAGIC;
} }