From 54c57918ae267c32f4a46e38081485213d33f395 Mon Sep 17 00:00:00 2001 From: Acretock Date: Wed, 24 Nov 2021 14:57:05 +0500 Subject: [PATCH] fix int -> uint warning --- src/os.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.cc b/src/os.cc index 4d0d0a71..25f72669 100644 --- a/src/os.cc +++ b/src/os.cc @@ -218,7 +218,7 @@ int buffered_file::fileno() const { #if FMT_USE_FCNTL file::file(cstring_view path, int oflag) { - int mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; + unsigned int mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; # if defined(_WIN32) && !defined(__MINGW32__) fd_ = -1; FMT_POSIX_CALL(sopen_s(&fd_, path.c_str(), oflag, _SH_DENYNO, mode));