diff --git a/retroshare-gui/src/gui/settings/JsonApiPage.cc b/retroshare-gui/src/gui/settings/JsonApiPage.cc index 12b7e3545..78d2aa458 100644 --- a/retroshare-gui/src/gui/settings/JsonApiPage.cc +++ b/retroshare-gui/src/gui/settings/JsonApiPage.cc @@ -54,7 +54,7 @@ bool JsonApiPage::updateParams(QString &errmsg) changed = true; } - uint16_t port = ui.portSpinBox->value(); + uint16_t port = static_cast(ui.portSpinBox->value()); if(port != Settings->getJsonApiPort()) { Settings->setJsonApiPort(port);