• 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
..
sys Loading commit data...
async.rs Loading commit data...
clear.rs Loading commit data...
color.rs Loading commit data...
cursor.rs Loading commit data...
event.rs Loading commit data...
input.rs Loading commit data...
lib.rs Loading commit data...
macros.rs Loading commit data...
raw.rs Loading commit data...
screen.rs Loading commit data...
scroll.rs Loading commit data...
style.rs Loading commit data...