Menu

#28 [wxPlotCtrl] plotdraw.cpp: Warning on double -> int cast.

CVS_HEAD
closed-fixed
None
5
2009-09-02
2009-05-06
No

On lines 1171 and 1173 in /cvsroot/wxcode/wxCode/components/wxplotctrl/src/plotdraw.cpp my compiler complains that double returned values from the call to floor are converted to int. I attach a patch with an explicit static_cast<int> applied on the returned values.

Discussion

  • Peter Jansson

    Peter Jansson - 2009-05-06

    Patch with static_cast<int> applied to the return from floor.

     
  • Peter Jansson

    Peter Jansson - 2009-05-06
    • assigned_to: nobody --> jrl1
     
  • John Labenski

    John Labenski - 2009-09-02

    Fixed in CVS.

     
  • John Labenski

    John Labenski - 2009-09-02
    • status: open --> closed-fixed
     

Log in to post a comment.