This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
* Use to_i on the event mask, it is not always an Integer
tags/v0.99.beta14
Pascal Terjan
pterjan
18 years ago
parent
117a70f1ee
commit
fab393b78e
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
ruby/caca-display.c
+ 2
- 0
ruby/caca-display.c
View File
@@ -125,6 +125,8 @@ static VALUE get_event(VALUE self, VALUE event_mask, VALUE timeout)
caca_event_t ev;
caca_event_t ev;
VALUE e;
VALUE e;
event_mask = rb_funcall(event_mask, rb_intern("to_i"), 0);
if(caca_get_event(_SELF, NUM2UINT(event_mask), &ev, NUM2INT(timeout)) == 0)
if(caca_get_event(_SELF, NUM2UINT(event_mask), &ev, NUM2INT(timeout)) == 0)
{
{
return Qnil;
return Qnil;
Write
Preview
Loading…
Cancel
Save