mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Remove key casts from hashmap function calls
We don't need the (char*) or (void*) casts anymore. You may need to `git submodule update --init`.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
074d54b42b
commit
310f3489d2
@@ -244,7 +244,7 @@ static void sync_lang_file(const std::string& langcode)
|
||||
hashmap* map = map_translation_cutscene;
|
||||
|
||||
uintptr_t ptr_cutscene_map;
|
||||
bool found = hashmap_get(map, (void*) cutscene_id, SDL_strlen(cutscene_id), &ptr_cutscene_map);
|
||||
bool found = hashmap_get(map, cutscene_id, SDL_strlen(cutscene_id), &ptr_cutscene_map);
|
||||
hashmap* cutscene_map = (hashmap*) ptr_cutscene_map;
|
||||
if (!found || cutscene_map == NULL)
|
||||
{
|
||||
@@ -271,7 +271,7 @@ static void sync_lang_file(const std::string& langcode)
|
||||
}
|
||||
|
||||
uintptr_t ptr_format;
|
||||
found = hashmap_get(cutscene_map, (void*) eng_prefixed, alloc_len-1, &ptr_format);
|
||||
found = hashmap_get(cutscene_map, eng_prefixed, alloc_len-1, &ptr_format);
|
||||
const TextboxFormat* format = (TextboxFormat*) ptr_format;
|
||||
|
||||
VVV_free(eng_prefixed);
|
||||
|
||||
Reference in New Issue
Block a user