Skip to content

Commit

Permalink
Fix warning when compilin libcore on 16bit targets.
Browse files Browse the repository at this point in the history
Fixes #49617
  • Loading branch information
vadzimdambrouski committed Apr 3, 2018
1 parent 5ee891c commit f5c4265
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ macro_rules! try_from_unbounded {
}

// unsigned to signed (only positive bound)
#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))]
macro_rules! try_from_upper_bounded {
($($target:ty),*) => {$(
impl PrivateTryFromUsize for $target {
Expand Down

0 comments on commit f5c4265

Please sign in to comment.