wxSlider *sl_B=_sl_RangeSizeSpin;
int value = lastResizeRef_Value;
- int delta = (int)pow( 4 , sl_B->GetValue() );
+ int delta = (int)pow((double) 4 , (double)sl_B->GetValue() );
int startResized = value - delta/2;
int endResized = value + delta/2;
void wxVtkClipping3DViewCntrlPanel::OnIsoValueSpin(wxScrollEvent& event)
{
int value = _isoValue->GetValue();
- int delta= (int)pow( 4 , _isoValueSpin->GetValue() );
+ int delta= (int)pow( (double)4 ,(double) _isoValueSpin->GetValue() );
int min=value - delta/2;
int max=value + delta/2;
if (min<0)