Fix specialization error

This commit is contained in:
Pascal Serrarens 2024-03-15 11:23:49 +01:00
parent 3e5ede06d6
commit 430344adc1
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
typedef AngleUsing<signed short> Angle16;
Angle16::AngleUsing(float angle) {
AngleUsing<signed short>::AngleUsing(float angle) {
if (!isfinite(angle)) {
value = 0;
return;
@ -15,7 +15,7 @@ Angle16::AngleUsing(float angle) {
this->value = (signed short)((angle / 360.0F) * 65536.0F);
}
float Angle16::ToFloat() const {
float AngleUsing<signed short>::ToFloat() const {
float f = ((this->value * 180) / 32768.0F);
return f;
}

View File

@ -5,7 +5,7 @@
typedef AngleUsing<signed char> Angle8;
Angle8::AngleUsing(float angle) {
AngleUsing<signed char>::AngleUsing(float angle) {
if (!isfinite(angle)) {
value = 0;
return;
@ -16,7 +16,7 @@ Angle8::AngleUsing(float angle) {
this->value = (signed char)(f * 256.0F);
}
float Angle8::ToFloat() const {
float AngleUsing<signed char>::ToFloat() const {
float f = (this->value * 180) / 128.0F;
return f;
}