Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/FixedPointsArduino/commit/ddf9a8309cc0835c9605c3502fc8a0be5b42dde3?style=unified&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix SFixed conversion by making ShiftType signed

`SFixed`'s conversion operator isn't functioning correctly because the shifting is being done with an unsigned type.
This rectifies that by changing `SFixed`'s `ShiftType` to a signed integer type.
pull/100/head
Pharap 3 years ago committed by GitHub
parent b61dd1a2c8
commit ddf9a8309c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/FixedPoints/SFixed.h

@ -44,7 +44,7 @@ public:
static constexpr uintmax_t InternalSize = FIXED_POINTS_DETAILS::BitSize<InternalType>::Value;
using ShiftType = FIXED_POINTS_DETAILS::LeastUInt<LogicalSize>;
using ShiftType = FIXED_POINTS_DETAILS::LeastInt<LogicalSize>;
using MaskType = FIXED_POINTS_DETAILS::LeastUInt<LogicalSize>;
public:

Loading…
Cancel
Save