From 91b7686e2e7dd287e88651fbd7a03a065349a017 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Sep 2021 00:26:03 +0200 Subject: [PATCH] Fix type of parameter --- src/FSWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSWrapper.cpp b/src/FSWrapper.cpp index 234a34c..a8025df 100644 --- a/src/FSWrapper.cpp +++ b/src/FSWrapper.cpp @@ -73,11 +73,11 @@ int getNewFileHandleIndex() { return handle_id; } -bool isValidDirHandle(int32_t handle) { +bool isValidDirHandle(uint32_t handle) { 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; }