diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c index aa7d63b8e78d482e530ef8b65c4b85721ceb1060..768d7a1830845185793bf8797e474ec39c12f841 100644 --- a/src/xpdev/genwrap.c +++ b/src/xpdev/genwrap.c @@ -281,7 +281,7 @@ int64_t parse_byte_count(const char* str, ulong unit) } if(unit > 1) bytes /= unit; - if(bytes < 0 || bytes > INT64_MAX) + if(bytes < 0 || bytes > (double)INT64_MAX) return INT64_MAX; return (int64_t)bytes; }