diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 03e35b0d7..74fd4b465 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -456,7 +456,7 @@ int check_dir(const char * dir, bool allow_tmp) int ret = -1; struct statfs s; if (::statfs(dir, &s) == 0) { - switch (s.f_type) { + switch ((long unsigned int)s.f_type) { case 0x858458f6L: // ramfs case 0x1021994L: // tmpfs if(allow_tmp)