compilation issues on MacOS
[ 19%] Building CXX object src/CMakeFiles/vite.dir/interface/Interval_select.cpp.o
/Users/ramet/Work/vite/src/interface/Interval_select.cpp:266:34: error:
non-constant-expression cannot be narrowed from type 'double' to
'Element_pos' (aka 'float') in initializer list [-Wc++11-narrowing]
Element_pos zoom[2]={minSpinBox->value(), maxSpinBox->value()};
^~~~~~~~~~~~~~~~~~~
/Users/ramet/Work/vite/src/interface/Interval_select.cpp:266:34: note: insert an
explicit cast to silence this issue
Element_pos zoom[2]={minSpinBox->value(), maxSpinBox->value()};
^~~~~~~~~~~~~~~~~~~
static_cast<Element_pos>( )
/Users/ramet/Work/vite/src/interface/Interval_select.cpp:266:55: error:
non-constant-expression cannot be narrowed from type 'double' to
'Element_pos' (aka 'float') in initializer list [-Wc++11-narrowing]
Element_pos zoom[2]={minSpinBox->value(), maxSpinBox->value()};
^~~~~~~~~~~~~~~~~~~
/Users/ramet/Work/vite/src/interface/Interval_select.cpp:266:55: note: insert an
explicit cast to silence this issue
...Element_pos zoom[2]={minSpinBox->value(), maxSpinBox->value()};
^~~~~~~~~~~~~~~~~~~
static_cast<Element_pos>( )
2 errors generated.