From: Ryan Flegel Date: Mon, 7 Jun 2004 21:46:26 +0000 (+0000) Subject: - fixed type warning on OS X X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7584a74e52195f0f8fa390952dfbb421e7c73f14;p=supertux.git - fixed type warning on OS X SVN-Revision: 1424 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index cd7337e8f..8ada081d7 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -553,9 +553,9 @@ void LevelEditor::update_level_settings_menu() /* if((i = string_list_find(level_settings_menu->get_item_by_id(MNID_PARTICLE).list,le_level->get_sector("main")->particlesystem.c_str())) != -1) level_settings_menu->get_item_by_id(MNID_PARTICLE).list->active_item = i;*/ - sprintf(str,"%d",le_level->get_sector("main")->solids->get_width()); + sprintf(str,"%d",static_cast(le_level->get_sector("main")->solids->get_width())); level_settings_menu->get_item_by_id(MNID_LENGTH).change_input(str); - sprintf(str,"%d",le_level->get_sector("main")->solids->get_height()); + sprintf(str,"%d", static_cast(le_level->get_sector("main")->solids->get_height())); level_settings_menu->get_item_by_id(MNID_HEIGHT).change_input(str); sprintf(str,"%d",le_level->time_left); level_settings_menu->get_item_by_id(MNID_TIME).change_input(str);