From b578ceffefee24585a1585a559e146fc2acd1b66 Mon Sep 17 00:00:00 2001 From: DavoSK Date: Wed, 1 Feb 2023 15:39:51 +0100 Subject: [PATCH] fix casts and make function non inlined (clang fix) --- code/foundation/src/gui/tooltip.c | 2 +- code/foundation/src/systems/modules/system_demo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/foundation/src/gui/tooltip.c b/code/foundation/src/gui/tooltip.c index 2c1e0e9..7bbddff 100644 --- a/code/foundation/src/gui/tooltip.c +++ b/code/foundation/src/gui/tooltip.c @@ -134,7 +134,7 @@ void tooltip_clear(void) { main_tooltip = (tooltip_node) {0}; } -inline void tooltip_draw_contents(tooltip *desc) { +void tooltip_draw_contents(tooltip *desc) { if (!desc) return; nk_layout_row_dynamic(game_ui, 0, 1); diff --git a/code/foundation/src/systems/modules/system_demo.c b/code/foundation/src/systems/modules/system_demo.c index 71e783e..6f6f367 100644 --- a/code/foundation/src/systems/modules/system_demo.c +++ b/code/foundation/src/systems/modules/system_demo.c @@ -54,7 +54,7 @@ void CreatureSeekFood(ecs_iter_t *it) { for (int i = 0; i < it->count; i++) { size_t ents_count; - uint64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2); + int64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2); float closest_ent_dist = ZPL_F32_MAX; uint64_t closest_ent = 0; @@ -110,7 +110,7 @@ void CreatureSeekCompanion(ecs_iter_t *it) { for (int i = 0; i < it->count; i++) { size_t ents_count; - uint64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2); + int64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2); float closest_ent_dist = ZPL_F32_MAX; uint64_t closest_ent = 0;