We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fffa458 commit 5a25dbbCopy full SHA for 5a25dbb
1 file changed
src/FixMath.h
@@ -649,8 +649,8 @@ inline UFix<0, sizeof(T)*8> toUFraction(T val) {
649
@return A UFix<NI,0> with NI chosen according to the input type
650
*/
651
template<typename T>
652
-inline UFix<sizeof(T)*8-1,0> toUInt(T val) {
653
- return UFix<sizeof(T)*8-1,0>::fromRaw(val);
+inline UFix<sizeof(T)*8,0> toUInt(T val) {
+ return UFix<sizeof(T)*8,0>::fromRaw(val);
654
}
655
656
0 commit comments