diff --git a/git-compat-util.h b/git-compat-util.h index 400e92108687e31dd16fbcea1a43e04556b98566..6a16e20966cd5b084a4490267a3082258ea6e7bb 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -475,7 +475,7 @@ extern int git_munmap(void *start, size_t length); #endif #define DEFAULT_PACKED_GIT_LIMIT \ - ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256)) + ((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256)) #ifdef NO_PREAD #define pread git_pread