From 53222248813b08701f0915ff15bb71e80d1284b4 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 13 Jan 2015 23:19:11 +0000 Subject: [PATCH] Warning fixes for llvm windows 64-bits --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index b66f5f17b..e9033ae5c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7730,7 +7730,7 @@ struct ExampleAppConsole if (data->EventKey == ImGuiKey_UpArrow) { if (HistoryPos == -1) - HistoryPos = History.size() - 1; + HistoryPos = (int)(History.size() - 1); else if (HistoryPos > 0) HistoryPos--; } @@ -7746,7 +7746,7 @@ struct ExampleAppConsole { ImFormatString(data->Buf, data->BufSize, "%s", (HistoryPos >= 0) ? History[HistoryPos] : ""); data->BufDirty = true; - data->CursorPos = data->SelectionStart = data->SelectionEnd = strlen(data->Buf); + data->CursorPos = data->SelectionStart = data->SelectionEnd = (int)strlen(data->Buf); } } }