1
0
Fork 0

src/Main/main.cxx: fixed warning in OpenBSD-specific code.

This commit is contained in:
Julian Smith 2020-09-11 09:49:07 +01:00
parent a6a7ce3e4b
commit aa1e0e1d1d

View file

@ -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"