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 bd32d24 commit 86ec6c4Copy full SHA for 86ec6c4
libdispatch/nchashmap.c
@@ -175,7 +175,7 @@ NC_hashmapnew(size_t startsize)
175
if(startsize == 0 || startsize < MINTABLESIZE)
176
startsize = MINTABLESIZE;
177
else {
178
- if(startsize > MAX_SIZE / 4){nullfree(hm);return 0;}
+ if(startsize > (size_t - 1) / 4){nullfree(hm);return 0;}
179
startsize *= 4;
180
startsize /= 3;
181
startsize = findPrimeGreaterThan(startsize);
0 commit comments