cpjreynolds / rustty

A terminal UI library
https://docs.rs/rustty
MIT License
152 stars 14 forks source link

error: mismatched types #8

Closed chengchangwu closed 9 years ago

chengchangwu commented 9 years ago

I've tried your example. It gives the following error:

/home/ccwu/.cargo/registry/src/github.com-1285ae84e5963aae/rustty-0.1.8/src/core/termctl.rs:60:53: 60:63 error: mismatched types: expected u32, found u64 (expected u32, found u64) [E0308] /home/ccwu/.cargo/registry/src/github.com-1285ae84e5963aae/rustty-0.1.8/src/core/termctl.rs:60 ioctl::read_into::(self.fd, TIOCGWINSZ, &mut ws)

cpjreynolds commented 9 years ago

First of all, thank you for reporting this!

Interesting, I can't reproduce this error on my dev box or the travis build. Looks like its because of a different ioctl function signature on your platform. What platform did you get this error on?

chengchangwu commented 9 years ago

The example seems to work under 64-bit version of Ubuntu 14.04 LTS, but not under 32-bit version.

cpjreynolds commented 9 years ago

I believe #12 should fix this, however I don't have a 32-bit machine to test it on. Closing the issue now as this should be fixed, but please let me know if you still get the error.

chengchangwu commented 9 years ago

it is fixed. Thank you.