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 mb a size_t as well to avoid the overflow.
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 mb a size_t as well to avoid the overflow.