Skip to content

Commit 5a25dbb

Browse files
committed
Fixed wrond toUInt
1 parent fffa458 commit 5a25dbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FixMath.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ inline UFix<0, sizeof(T)*8> toUFraction(T val) {
649649
@return A UFix<NI,0> with NI chosen according to the input type
650650
*/
651651
template<typename T>
652-
inline UFix<sizeof(T)*8-1,0> toUInt(T val) {
653-
return UFix<sizeof(T)*8-1,0>::fromRaw(val);
652+
inline UFix<sizeof(T)*8,0> toUInt(T val) {
653+
return UFix<sizeof(T)*8,0>::fromRaw(val);
654654
}
655655

656656

0 commit comments

Comments
 (0)