We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c095f commit d48c93aCopy full SHA for d48c93a
src/os.c
@@ -113,7 +113,7 @@ size_t _mi_os_good_alloc_size(size_t size) {
113
else if (size < 8*MiB) align_size = 256*KiB;
114
else if (size < 32*MiB) align_size = 1*MiB;
115
else align_size = 4*MiB;
116
- if (size >= (SIZE_MAX - align_size)) return size; // possible overflow?
+ if (mi_unlikely(size >= (SIZE_MAX - align_size))) return size; // possible overflow?
117
return _mi_align_up(size, align_size);
118
}
119
0 commit comments