diff --git a/imgui.cpp b/imgui.cpp index 1dc4862a..c5039d63 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -9689,7 +9689,7 @@ static const char* GetClipboardTextFn_DefaultImpl(void*) ItemCount item_count = 0; PasteboardGetItemCount(main_clipboard, &item_count); - for (int i = 0; i < item_count; i++) + for (ItemCount i = 0; i < item_count; i++) { PasteboardItemID item_id = 0; PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id);