diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-28 15:43:58 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-28 15:43:58 +0000 |
| commit | 8c360b2a3c33eab6d2b86e7145b14f3ac1353473 (patch) | |
| tree | 78610fe08bb4a011f40ad26164bf7dc9952cb122 /core/_preload.odin | |
| parent | b66e7bed45702ad54d160c9f59fd19c503357630 (diff) | |
Reduce type info data size in IR
Diffstat (limited to 'core/_preload.odin')
| -rw-r--r-- | core/_preload.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/_preload.odin b/core/_preload.odin index b0c269bf8..792a108e0 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -1132,7 +1132,7 @@ __dynamic_map_delete :: proc(using h: __Map_Header, key: __Map_Key) { __dynamic_map_get_entry :: proc(using h: __Map_Header, index: int) -> ^__Map_Entry_Header { assert(0 <= index && index < m.entries.len); - return cast(^__Map_Entry_Header)(cast(^byte)m.entries.data + index*entry_size); + return cast(^__Map_Entry_Header)(uintptr(m.entries.data) + uintptr(index*entry_size)); } __dynamic_map_erase :: proc(using h: __Map_Header, fr: __Map_Find_Result) { |