From 8cff961ce194a360481a0734252a5a59a7e0578e Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Thu, 22 Dec 2016 21:06:04 +0100 Subject: [PATCH] Added parenthesis to expression --- Source/Utils/Folders.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utils/Folders.cpp b/Source/Utils/Folders.cpp index 21322c1..8f2bc18 100644 --- a/Source/Utils/Folders.cpp +++ b/Source/Utils/Folders.cpp @@ -117,11 +117,11 @@ const char* Folders::getHomeDirectory() bool Folders::makeDirectory(const std::string& path) { #ifdef _WIN32 int status = CreateDirectory(path.c_str(), NULL); - return status != 0 || GetLastError() == ERROR_ALREADY_EXISTS; + return ((status != 0) || (GetLastError() == ERROR_ALREADY_EXISTS)); #else errno = 0; int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); - return status == 0 || errno == EEXIST; + return ((status == 0) || (errno == EEXIST)); #endif } -- 2.39.2