geos/geos-3.3.2-ruby-19.patch
Vít Ondruch ff338a31e0 Rebuilt for Ruby 1.9.3.
Rebuilt for PHP 5.4.
2012-02-27 17:07:13 +01:00

14 lines
446 B
Diff

Index: swig/ruby/ruby.i
===================================================================
--- swig/ruby/ruby.i (revision 3104)
+++ swig/ruby/ruby.i (working copy)
@@ -75,7 +75,7 @@
Check_Type($input, T_ARRAY);
/* Get the length */
- $2 = RARRAY($input)->len;
+ $2 = RARRAY_LEN($input);
/* Allocate space for the C array. */
$1 = (GeosLinearRing**) malloc($2*sizeof(GeosLinearRing*));