mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-01-20 05:42:49 +08:00
Merge pull request #162 from trapexit/intsizes
fix minor integer casting issues
This commit is contained in:
commit
e84c458cad
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user