use the types that are actually standadized to 64 bit

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6778 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2012-04-01 16:51:43 +00:00
parent e6bbed57f1
commit 20ca7d0b45
+2 -2
View File
@@ -363,7 +363,7 @@ bool stream::getline(char *str, int len)
#ifdef __linux__
#include <sys/statvfs.h>
#define MINFSSIZE 50000000ull // 50MB
const int64_t MINFSSIZE = 50000000; // 50MB
#endif
struct filestream : stream
@@ -382,7 +382,7 @@ struct filestream : stream
if(file && strchr(mode,'w'))
{
int fail = fstatvfs(fileno(file), &buf);
if (fail || (unsigned long long)buf.f_frsize * (unsigned long long)buf.f_bavail < MINFSSIZE)
if (fail || (int64_t)buf.f_frsize * (int64_t)buf.f_bavail < MINFSSIZE)
{
close();
return false;