Fixed wrong conversion to short

This commit is contained in:
Pascal Serrarens 2024-04-05 11:59:36 +02:00
parent 264bcbc0ba
commit 66ff721dfe

View File

@ -12,7 +12,7 @@ template <> Angle32::AngleUsing(float angle) {
}
// map float [-180..180) to integer [-2147483648..2147483647]
this->value = (signed short)((angle / 360.0F) * 4294967295.0F);
this->value = (signed long)((angle / 360.0F) * 4294967295.0F);
}
template <> float Angle32::ToFloat() const {