mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 07:29:30 +03:00
fix further annotation warnings for vs2022
This commit is contained in:
parent
84126e8dc0
commit
f4744bd192
1 changed files with 3 additions and 1 deletions
|
@ -279,7 +279,9 @@ static inline bool mi_count_size_overflow(size_t count, size_t size, size_t* tot
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (mi_unlikely(mi_mul_overflow(count, size, total))) {
|
else if (mi_unlikely(mi_mul_overflow(count, size, total))) {
|
||||||
|
#if !defined(NDEBUG)
|
||||||
_mi_error_message(EOVERFLOW, "allocation request is too large (%zu * %zu bytes)\n", count, size);
|
_mi_error_message(EOVERFLOW, "allocation request is too large (%zu * %zu bytes)\n", count, size);
|
||||||
|
#endif
|
||||||
*total = SIZE_MAX;
|
*total = SIZE_MAX;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue