Skip to content

Commit

Permalink
fix deprecated operator "" declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Bać committed Oct 12, 2023
1 parent 67f4508 commit 5649ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fixed_lib/include/fixedmath/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace fixedmath
return quiet_NaN_result();
}

constexpr fixed_t operator"" _fix ( unsigned long long value ) noexcept
constexpr fixed_t operator ""_fix ( unsigned long long value ) noexcept
{
return integral_to_fixed( static_cast<int64_t>( value ));
}
Expand All @@ -88,7 +88,7 @@ namespace fixedmath
return quiet_NaN_result();
}

constexpr fixed_t operator"" _fix ( long double value ) noexcept
constexpr fixed_t operator ""_fix ( long double value ) noexcept
{
return floating_point_to_fixed( static_cast<double>( value ));
}
Expand Down
4 changes: 2 additions & 2 deletions fixed_lib/include/fixedmath/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#define FIXEDMATH_VERSION_MAJOR 0
#define FIXEDMATH_VERSION_MINOR 9
#define FIXEDMATH_VERSION_PATCH 15
#define FIXEDMATH_VERSION_STRING "fixedmath 0.9.15"
#define FIXEDMATH_VERSION_PATCH 16
#define FIXEDMATH_VERSION_STRING "fixedmath 0.9.16"

namespace fixedmath
{
Expand Down

0 comments on commit 5649ff9

Please sign in to comment.