fix warning

This commit is contained in:
wmayer
2017-11-14 21:47:56 +01:00
parent 3998eb964e
commit 2da18e49aa
4 changed files with 7 additions and 8 deletions

View File

@@ -633,7 +633,7 @@ void QuantityPy::setFormat(Py::Tuple arg)
throw Py::ValueError("Invalid format character");
bool ok;
fmt.format = Base::QuantityFormat::toFormat(fmtstr.front(), &ok);
fmt.format = Base::QuantityFormat::toFormat(fmtstr[0], &ok);
if (!ok)
throw Py::ValueError("Invalid format character");