Ignore:
Timestamp:
Nov 1, 2012, 9:18:08 PM (10 years ago)
Author:
Pascal Terjan
Message:

Use macros to access len, needed for ruby 1.9

File:
1 edited

Legend:

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

    r4369 r4845  
    4949    int error = 0;
    5050
    51     if(RARRAY(palette)->len != 256)
     51    if(RARRAY_LEN(palette) != 256)
    5252    {
    5353        rb_raise(rb_eArgError, "Palette must contain 256 elements");
     
    8585    {
    8686        v = rb_ary_entry(palette, i);
    87         if((TYPE(v) == T_ARRAY) && (RARRAY(v)->len == 4))
     87        if((TYPE(v) == T_ARRAY) && (RARRAY_LEN(v) == 4))
    8888        {
    8989            r = rb_ary_entry(v,0);
Note: See TracChangeset for help on using the changeset viewer.