diff --git a/Fltk/optionWindow.cpp b/Fltk/optionWindow.cpp index 17b8e86001d2dc1fba7a03a40028b00808ec1ef3..3a079b2dea84984fddab8da625afe44f9e602bd5 100644 --- a/Fltk/optionWindow.cpp +++ b/Fltk/optionWindow.cpp @@ -554,7 +554,7 @@ static void view_options_ok_cb(Fl_Widget *w, void *data) int vindex = o->view.index; if(vindex >= 0 && vindex < (int)PView::list.size()){ // compute min/max taking current visibility status into account - int step = opt_view_timestep(vindex, GMSH_GET, 0); + int step = (int)opt_view_timestep(vindex, GMSH_GET, 0); if(!strcmp(str, "range_min")) o->view.value[31]->value (PView::list[vindex]->getData(true)->getMin(step, true)); diff --git a/Fltk/partitionDialog.cpp b/Fltk/partitionDialog.cpp index ffd16814cac7eccf5565745d320d4f403cb75deb..ffa8a12f5c4755f2357dbb891ec7c8e0f0f028fe 100644 --- a/Fltk/partitionDialog.cpp +++ b/Fltk/partitionDialog.cpp @@ -124,12 +124,12 @@ struct PartitionDialog CTX::instance()->partitionOptions.edge_matching = choiceEdgeMatch->value() + 1; CTX::instance()->partitionOptions.refine_algorithm = choiceRefineAlg->value() + 1; - CTX::instance()->partitionOptions.triWeight = inputTriWeight->value(); - CTX::instance()->partitionOptions.quaWeight = inputQuaWeight->value(); - CTX::instance()->partitionOptions.tetWeight = inputTetWeight->value(); - CTX::instance()->partitionOptions.priWeight = inputPriWeight->value(); - CTX::instance()->partitionOptions.pyrWeight = inputPyrWeight->value(); - CTX::instance()->partitionOptions.hexWeight = inputHexWeight->value(); + CTX::instance()->partitionOptions.triWeight = (int)inputTriWeight->value(); + CTX::instance()->partitionOptions.quaWeight = (int)inputQuaWeight->value(); + CTX::instance()->partitionOptions.tetWeight = (int)inputTetWeight->value(); + CTX::instance()->partitionOptions.priWeight = (int)inputPriWeight->value(); + CTX::instance()->partitionOptions.pyrWeight = (int)inputPyrWeight->value(); + CTX::instance()->partitionOptions.hexWeight = (int)inputHexWeight->value(); } void read_all_options()