withoutboats / notty

A new kind of terminal
GNU Affero General Public License v3.0
2.3k stars 41 forks source link

compiling on 32 bit system #18

Closed timb closed 8 years ago

timb commented 8 years ago

I was able to build and run the demo terminal by changing line 25 in image_renderer.rs from 'as i64' to 'as i32'.

I know very little about Rust... possible to automatically infer that type?

withoutboats commented 8 years ago

In idiomatic Rust this value would be an isize, but because this is C FFI its a library defined type that is a different size on different systems. I'll have a patch up that fixes this in a few minutes.

withoutboats commented 8 years ago

Can you pull the support_32bit_systems branch and confirm that it compiles and runs for you? Once I have that confirmation I'll merge the change in.

timb commented 8 years ago

Nice, that works. Thanks!

(I had got as far as trying out isize and libc::ssize_t but didn't figure out that extern crate libc; was necessary in notty-cairo/src/lib.rs )