Update bthome.h

This commit is contained in:
t0urista 2024-10-29 22:41:37 +01:00 committed by GitHub
parent b679f916f4
commit 80874184a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,7 +158,7 @@ class OIDSFixedPoint: public OIDFixedSize <oid, size_bytes> {
};
}
return FloatValue {
.value = read_sint(sr.value_size, sr.value_ptr) * f_num / f_denom,
.value = static_cast<float>(read_sint(sr.value_size, sr.value_ptr)) * f_num / f_denom,
.next_ptr = sr.next_ptr,
};
}