fixed embarrasing bug: usize will never be below 0!

This commit is contained in:
Kied Llaentenn 2019-12-13 09:39:23 -05:00
parent 809c236f08
commit be25d30069

2
main.c
View File

@ -56,7 +56,7 @@ main ( int argc, char *argv[] )
tb_present();
// event handling
usize err = (usize) tb_peek_event(&e, 5);
int err = (usize) tb_peek_event(&e, 5);
if (err < 0)
continue;