Skip to content

Commit ff7f015

Browse files
committed
Regression in HashMap.@get_or_set
1 parent 0ad3aef commit ff7f015

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/std/collections/hashmap.c3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ macro Value HashMap.@get_or_set(&map, Key key, Value #expr)
227227
return val;
228228
}
229229
uint hash = rehash(key.hash());
230-
sz index = index_for(hash, map.table.len);
230+
int index = index_for(hash, map.table.len);
231231
for (Entry *e = map.table[index]; e != null; e = e.next)
232232
{
233233
if (e.hash == hash && equals(key, e.key)) return e.value;

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#define COMPILER_VERSION "0.8.0_2"
1+
#define COMPILER_VERSION "0.8.0_3"
22
#define PRERELEASE 0

0 commit comments

Comments
 (0)