mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
warning: comparison of integers of different
This commit is contained in:
parent
d3afbdedc6
commit
a20a10c590
@ -167,7 +167,7 @@ void benchmark_alloc() {
|
||||
auto& vec = ptrs[pid];
|
||||
sw.start();
|
||||
for (std::size_t k = 0; k < 2; ++k)
|
||||
for (std::size_t n = (CacheSize * pid); n < (CacheSize * (pid + 1)); ++n) {
|
||||
for (int n = (CacheSize * pid); n < (CacheSize * (pid + 1)); ++n) {
|
||||
int m = mode.index(pid, k, n);
|
||||
void*& p = vec[static_cast<std::size_t>(m)];
|
||||
std::size_t s = sizes__[static_cast<std::size_t>(m)];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user