From 002ffc95bc6b2f0b404dbecc1d33888071eae2ff Mon Sep 17 00:00:00 2001 From: Rokas Kupstys <19151258+rokups@users.noreply.github.com> Date: Wed, 7 Sep 2022 02:17:09 +0300 Subject: [PATCH] Fix truncation warnings. (#392) --- implot_demo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implot_demo.cpp b/implot_demo.cpp index c828b4d..3a62775 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -1189,8 +1189,8 @@ void Demo_LinkedAxes() { void Demo_AxisConstraints() { static float constraints[4] = {-10,10,1,20}; static ImPlotAxisFlags flags; - ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01); - ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01); + ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01f); + ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01f); CHECKBOX_FLAG(flags, ImPlotAxisFlags_PanStretch); if (ImPlot::BeginPlot("##AxisConstraints",ImVec2(-1,0))) { ImPlot::SetupAxes("X","Y",flags,flags); @@ -2443,4 +2443,4 @@ void PlotCandlestick(const char* label_id, const double* xs, const double* opens } } -} // namespace MyImplot \ No newline at end of file +} // namespace MyImplot