diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-19 14:42:49 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-19 14:42:49 -0400 |
| commit | c814ebe71f18514c381c33aef574df0edcd0adf2 (patch) | |
| tree | d265aeafe66e85182822e365723f8ea5b181b526 /src/stdlib/tables.c | |
| parent | a97e85655baa105642de383d11e7e7d636ecca94 (diff) | |
Fix signed comparison issues
Diffstat (limited to 'src/stdlib/tables.c')
| -rw-r--r-- | src/stdlib/tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c index 45e3abb4..6e774c53 100644 --- a/src/stdlib/tables.c +++ b/src/stdlib/tables.c @@ -229,7 +229,7 @@ void *Table$reserve(Table_t *t, const void *key, const void *value, const TypeIn // Otherwise add a new entry: // Resize buckets if necessary - if (t->entries.length >= (int64_t)t->bucket_info->count) { + if (t->entries.length >= t->bucket_info->count) { // Current resize policy: +50% at a time: uint32_t newsize = MAX(8, (uint32_t)(3 * t->bucket_info->count) / 2); if (unlikely(newsize > TABLE_MAX_BUCKETS)) newsize = TABLE_MAX_BUCKETS; |
