Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid integer overflow for cache-limit
Without this, "mb * 1024 * 1024" overflows for mb >= 2048. The result is then cast into size_t, which is unsigned and usually a 64-bit integer. The end result is, that the cache is now basically unlimited. Fix this by making sure that the multiplication operated on 64-bit values.
- Loading branch information