Skip to content

Commit

Permalink
Add generic type to ShiftRight calls
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Aug 5, 2021
1 parent 9c5a945 commit 8583ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csharp/Platform.Numbers/Bit[T].cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static Func<T, int, T> CompileShiftRightDelegate()
{
Ensure.Always.IsNumeric<T>();
emiter.LoadArguments(0, 1);
emiter.ShiftRight();
emiter.ShiftRight<T>();
emiter.Return();
});
}
Expand Down Expand Up @@ -225,7 +225,7 @@ private static Func<T, int, int, T> CompilePartialReadDelegate()
emiter.LoadLocal(targetMask);
emiter.And();
emiter.LoadArgument(shiftArgument);
emiter.ShiftRight();
emiter.ShiftRight<T>();
emiter.Return();
});
}
Expand Down

0 comments on commit 8583ec3

Please sign in to comment.