Ignore:
Timestamp:
Apr 19, 2008, 1:48:32 PM (13 years ago)
Author:
Pascal Terjan
Message:

Fix args type checks in Caca::Display.new

File:
1 edited

Legend:

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

    r2296 r2298  
    5454    }
    5555
    56     if(CLASS_OF(arg1) == T_STRING)
     56    if(TYPE(arg1) == T_STRING)
    5757    {
    5858        driver = StringValuePtr(arg1);
    59         if(CLASS_OF(arg2) == T_STRING)
     59        if(TYPE(arg2) == T_STRING)
    6060        {
    6161            rb_raise(rb_eArgError, "Only one argument can be a string");
    6262        }
    6363    }
    64     else if(CLASS_OF(arg2) == T_STRING)
     64    else if(TYPE(arg2) == T_STRING)
    6565    {
    6666        driver = StringValuePtr(arg2);
Note: See TracChangeset for help on using the changeset viewer.