Calling this function with a negative value and DataType::Int16 always gives a 0 result on ARM. Need to convert to qint16 first to avoid undefined behavior (cf. https://embeddeduse.com/2013/08/25/casting-a-negative-float-to-an-unsigned-int/) |
||
|---|---|---|
| .. | ||
| models | ||
| tools | ||
| libnymea-sunspec.pro | ||
| sunspec.png | ||
| sunspec.pro | ||
| sunspecconnection.cpp | ||
| sunspecconnection.h | ||
| sunspecdatapoint.cpp | ||
| sunspecdatapoint.h | ||
| sunspecmodel.cpp | ||
| sunspecmodel.h | ||
| sunspecmodelrepeatingblock.cpp | ||
| sunspecmodelrepeatingblock.h | ||