From b79e71d9c4f25f4e0af366d887e996a5cb46f113 Mon Sep 17 00:00:00 2001 From: Jeffrey Gill Date: Wed, 25 Aug 2021 14:24:57 -0400 Subject: [PATCH] Minor change to address type ambiguity error on macOS --- src/ctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ctrl.cpp b/src/ctrl.cpp index eeb7877..fe090ea 100644 --- a/src/ctrl.cpp +++ b/src/ctrl.cpp @@ -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." ); @@ -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." );