From aa1e0e1d1d6ffa868107395368b6761b6759b076 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Fri, 11 Sep 2020 09:49:07 +0100 Subject: [PATCH] src/Main/main.cxx: fixed warning in OpenBSD-specific code. --- src/Main/main.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 979ad500b..5bf2df63d 100755 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -620,7 +620,7 @@ int fgMainInit( int argc, char **argv ) SG_LOG( SG_GENERAL, SG_INFO, "This is OpenBSD; getrlimit() failed: " << strerror(errno)); } else { - long long required = 4LL * (1LL<<30); + unsigned long long required = 4ULL * (1ULL<<30); if (rlimit.rlim_cur < required) { SG_LOG( SG_GENERAL, SG_POPUP, "" << "Max data segment (" << rlimit.rlim_cur << "bytes) too small.\n"