Skip to content

Commit

Permalink
change nth type to u8
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Aug 18, 2017
1 parent 8e64d05 commit 6d8939e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl Sign {

// At least for primitive types this function does not incur runtime costs, since it is only called
// with constants
fn nth<I>(n: usize) -> I
fn nth<I>(n: u8) -> I
where I: Zero + One
{
let mut i = I::zero();
Expand Down

0 comments on commit 6d8939e

Please sign in to comment.