• Michael Neumann's avatar
    Fix TIOCGWINSZ type mismatch on DragonFly · 0837ad5a
    Michael Neumann authored
    Below is the error message I got before this patch:
    
        error[E0308]: mismatched types
          --> src/sys/unix/size.rs:17:34
           |
        17 |         cvt(ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut size as *mut _))?;
           |                                  ^^^^^^^^^^ expected u64, found u32
        help: you can cast an `u32` to `u64`, which will zero-extend the source value
           |
        17 |         cvt(ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &mut size as *mut _))?;
           |                                  ^^^^^^^^^^^^^^^^^
    0837ad5a
Name
Last commit
Last update
examples Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
Cargo.toml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
image.png Loading commit data...
logo.svg Loading commit data...