summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cmap.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-04-27 12:41:24 +0200
committerTyge Løvset <[email protected]>2023-04-27 12:41:24 +0200
commitba3f2284731e50100d249cf1d825b8d24efad658 (patch)
tree888fd07f8dac722c913cb3bd7358dd20dafce70c /include/stc/cmap.h
parent9d5766ae528595050dcfe0db4c1c3c0c058b186c (diff)
downloadSTC-modified-ba3f2284731e50100d249cf1d825b8d24efad658.tar.gz
STC-modified-ba3f2284731e50100d249cf1d825b8d24efad658.zip
removing compiler warning ++.
Diffstat (limited to 'include/stc/cmap.h')
-rw-r--r--include/stc/cmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h
index 65e4a544..9f21b811 100644
--- a/include/stc/cmap.h
+++ b/include/stc/cmap.h
@@ -422,7 +422,7 @@ _cx_memb(_reserve)(_cx_self* self, const intptr_t _newcap) {
return true;
intptr_t _newbucks = (intptr_t)((float)_newcap / (i_max_load_factor)) + 4;
#if i_expandby == 2
- _newbucks = (intptr_t)next_power_of_2(_newbucks);
+ _newbucks = (intptr_t)next_power_of_2((uint64_t)_newbucks);
#else
_newbucks |= 1;
#endif