From 191a23232777f899f7424168f41a9b335bdebb13 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 10 Oct 2020 17:13:04 +0200 Subject: [PATCH] Eliminate a warning with win32 format --- editor/src/editor/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/editor/Editor.cpp b/editor/src/editor/Editor.cpp index b936065f..ed235ecc 100644 --- a/editor/src/editor/Editor.cpp +++ b/editor/src/editor/Editor.cpp @@ -590,7 +590,7 @@ void Editor::Impl::createFrameContents() for (int log2value = 10; log2value <= 16; ++log2value) { int value = 1 << log2value; char text[256]; - sprintf(text, "%lu kB", value / 1024 * sizeof(float)); + sprintf(text, "%lu kB", static_cast(value / 1024 * sizeof(float))); text[sizeof(text) - 1] = '\0'; preloadSizeSlider_->addEntry(text, value); }