App: [skip ci] handle types long and unsigned long in PropertyPlacement::setPathValue()

This commit is contained in:
wmayer
2020-04-03 12:02:46 +02:00
parent 2994b11997
commit 919b414dcb

View File

@@ -643,6 +643,10 @@ void PropertyPlacement::setPathValue(const ObjectIdentifier &path, const boost::
avalue = boost::any_cast<short>(value);
else if (value.type() == typeid(unsigned short))
avalue = boost::any_cast<unsigned short>(value);
else if (value.type() == typeid(long))
avalue = boost::any_cast<long>(value);
else if (value.type() == typeid(unsigned long))
avalue = boost::any_cast<unsigned long>(value);
else
throw std::bad_cast();