Changeset 2020 for libcaca


Ignore:
Timestamp:
Nov 18, 2007, 10:29:02 PM (13 years ago)
Author:
Pascal Terjan
Message:
  • Use to_i on the event mask, it is not always an Integer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/caca-display.c

    r2019 r2020  
    125125    caca_event_t ev;
    126126    VALUE e;
     127
     128    event_mask = rb_funcall(event_mask, rb_intern("to_i"), 0);
    127129
    128130    if(caca_get_event(_SELF, NUM2UINT(event_mask), &ev, NUM2INT(timeout)) == 0)
Note: See TracChangeset for help on using the changeset viewer.