Skip to content

Commit

Permalink
Fix VC++ warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-seddon committed May 18, 2017
1 parent a403a3c commit fd3eb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/b2/dear_imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void ImGuiSliderGetSet(const char *label,
float maxi,
const char *display_format)
{
float value=(object->*get_mfn)();
auto value=static_cast<float>((object->*get_mfn)());

if(ImGui::SliderFloat(label,&value,mini,maxi,display_format)) {
(object->*set_mfn)(value);
Expand Down

0 comments on commit fd3eb56

Please sign in to comment.