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