fix warning

This commit is contained in:
wmayer
2017-11-14 21:47:56 +01:00
parent 04ea295280
commit 8c7bb0cd55
4 changed files with 7 additions and 8 deletions
+1 -1
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");