Merge pull request #162 from trapexit/intsizes

fix minor integer casting issues
This commit is contained in:
Antonio SJ Musumeci 2015-10-13 23:34:18 -04:00
commit e84c458cad
2 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#include "rwlock.hpp"
#include "fs.hpp"
#define MINFREESPACE_DEFAULT (4294967295)
#define MINFREESPACE_DEFAULT (4294967295ULL)
#define POLICYINIT(X) X(policies[FuseFunc::Enum::X])
using std::string;

View File

@ -117,8 +117,10 @@ _getxattr_controlfile_minfreespace(const Config &config,
string &attrvalue)
{
char buf[64];
unsigned long long minfreespace;
snprintf(buf,sizeof(buf),"%li",config.minfreespace);
minfreespace = (unsigned long long)config.minfreespace;
snprintf(buf,sizeof(buf),"%llu",minfreespace);
attrvalue = buf;
}