andydude / rust-bswap

Rust Byte Swapping Library
MIT License
3 stars 6 forks source link

Could not compile `bswap`. #1

Closed adjivas closed 9 years ago

adjivas commented 9 years ago

Hello @andydude,

I report this incident for you on a OS X Yosemite 10.10.2: My Rust's Version is 1.0.0-dev (built 2015-03-16), installed with Homebrew.

> git clone https://github.com/andydude/rust-bswap.git && ./rust-bswap
> cargo build                                                                                  (master)
   Compiling bswap v0.1.8 (file:///Volumes/Data/nfs/zfs-student-5/users/2013/adjivas/Project/grammairien/cargotest/rust-bswap)
src/lib.rs:56:15: 56:42 error: mismatched types:
 expected `usize`,
    found `u32`
(expected usize,
    found u32) [E0308]
src/lib.rs:56         2.pow(off.trailing_zeros() as u32)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `bswap`.

To learn more, run the command again with --verbose.

Do you want more information?