Misc changes
This commit is contained in:
1
base.cpp
1
base.cpp
@@ -967,6 +967,7 @@ intern_string(Intern_Table *t, String string){
|
||||
U64 hash = hash_string(string);
|
||||
U8 *slot = (U8 *)map_get(&t->map, hash);
|
||||
if(slot){
|
||||
// @todo: Is this a cast bug: *(slot-sizeof(S64))? slot is u8 so truncates?
|
||||
Intern_String result = {{slot, *(slot-sizeof(S64))}};
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user