Skip to content

Commit

Permalink
fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 4, 2023
1 parent f5b6684 commit 684f28e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/ui_snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void ui_snapshot_menus(ui_snapshot_t* state) {
if (ImGui::BeginMenu("Save Snapshot")) {
for (size_t slot_index = 0; slot_index < UI_SNAPSHOT_MAX_SLOTS; slot_index++) {
const ui_snapshot_screenshot_t screenshot = state->slots[slot_index].screenshot;
ImGui::PushID(slot_index);
ImGui::PushID((int)slot_index);
if (screenshot.texture) {
if (ui_snapshot_draw_menu_slot("##savesnapshot", screenshot)) {
ui_snapshot_save_slot(state, slot_index);
Expand All @@ -154,7 +154,7 @@ void ui_snapshot_menus(ui_snapshot_t* state) {
for (size_t slot_index = 0; slot_index < UI_SNAPSHOT_MAX_SLOTS; slot_index++) {
if (state->slots[slot_index].valid) {
const ui_snapshot_screenshot_t screenshot = state->slots[slot_index].screenshot;
ImGui::PushID(slot_index);
ImGui::PushID((int)slot_index);
if (screenshot.texture) {
if (ui_snapshot_draw_menu_slot("##loadsnapshot", screenshot)) {
ui_snapshot_load_slot(state, slot_index);
Expand Down Expand Up @@ -204,4 +204,4 @@ ui_snapshot_screenshot_t ui_snapshot_set_screenshot(ui_snapshot_t* state, size_t
state->slots[slot_index].screenshot = screenshot;
return prev_screenshot;
}
#endif
#endif

0 comments on commit 684f28e

Please sign in to comment.