From: rexim Date: Sat, 4 Jan 2020 21:13:45 +0000 (+0700) Subject: Try to fix clang build X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d3d8eec7d67375f5a6d0e05ea24409e8597fe76b;p=nothing.git Try to fix clang build --- diff --git a/src/game/level/level_editor/rect_layer.c b/src/game/level/level_editor/rect_layer.c index ab2fd14a..778c324c 100644 --- a/src/game/level/level_editor/rect_layer.c +++ b/src/game/level/level_editor/rect_layer.c @@ -926,7 +926,7 @@ RectLayer *chop_rect_layer(Memory *memory, String action_string = trim(chop_word(&line)); if (action_string.count > 0) { - action.type = atoi(string_to_cstr(memory, action_string)); + action.type = (ActionType)atol(string_to_cstr(memory, action_string)); switch (action.type) { case ACTION_NONE: break; case ACTION_TOGGLE_GOAL: