diff --git a/sparsebundlefs.cpp b/sparsebundlefs.cpp index b31bd21..dd260c1 100644 --- a/sparsebundlefs.cpp +++ b/sparsebundlefs.cpp @@ -155,7 +155,7 @@ using namespace std; static off_t read_size(const string &str) { uintmax_t value = strtoumax(str.c_str(), 0, 10); - if (errno == ERANGE || value > numeric_limits::max()) { + if (errno == ERANGE || value > static_cast(numeric_limits::max())) { fprintf(stderr, "Disk image too large to be mounted (%s bytes)\n", str.c_str()); exit(-1); }