Skip to content

Commit

Permalink
Minor change to address type ambiguity error on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgill86 committed Aug 25, 2021
1 parent 6cbc680 commit b79e71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ NernstCtrl::NernstCtrl( struct options *options, QWidget *parent )

xSld = new QSlider( Qt::Horizontal );
xSld->setMinimumWidth( 100 );
xSld->setRange( (int)( log( MIN_X ) / log( 2 ) + 0.5 ), (int)( log( MAX_X ) / log( 2 ) + 0.5 ) );
xSld->setRange( (int)( log( (int)MIN_X ) / log( 2 ) + 0.5 ), (int)( log( (int)MAX_X ) / log( 2 ) + 0.5 ) );
xSld->setValue( (int)( log( xDefault ) / log( 2 ) + 0.5 ) );
xSld->setToolTip( "Set the width of the world." );

Expand All @@ -117,7 +117,7 @@ NernstCtrl::NernstCtrl( struct options *options, QWidget *parent )

ySld = new QSlider( Qt::Horizontal );
ySld->setMinimumWidth( 100 );
ySld->setRange( (int)( log( MIN_Y ) / log( 2 ) + 0.5 ), (int)( log( MAX_Y ) / log( 2 ) + 0.5 ) );
ySld->setRange( (int)( log( (int)MIN_Y ) / log( 2 ) + 0.5 ), (int)( log( (int)MAX_Y ) / log( 2 ) + 0.5 ) );
ySld->setValue( (int)( log( yDefault ) / log( 2 ) + 0.5 ) );
ySld->setToolTip( "Set the height of the world." );

Expand Down

0 comments on commit b79e71d

Please sign in to comment.