We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7360f2d commit 59a7827Copy full SHA for 59a7827
1 file changed
src/FixMath.h
@@ -1379,8 +1379,8 @@ constexpr SFix<sizeof(T)*8-1,0> toSInt(T val) {
1379
@endcode
1380
*/
1381
template<int64_t value>
1382
-constexpr const FixMathPrivate::SFixByRange_t<0, value < 0 ? -value : value> SFixAuto() {
1383
- return FixMathPrivate::SFixByRange_t<0, value < 0 ? -value : value>::fromRaw(value);
+constexpr const FixMathPrivate::SFixByRange_t<0, value < 0 ? -value : value+1> SFixAuto() {
+ return FixMathPrivate::SFixByRange_t<0, value < 0 ? -value : value+1>::fromRaw(value);
1384
}
1385
1386
#include "FixMath_Autotests.h"
0 commit comments