pkgsrc/multimedia/ruby-ming/patches/patch-ad
taca efd48da7ba * Ajust new ruby package's framework.
* Add patch to support for ruby18 and ruby19.
2010-09-10 07:31:45 +00:00

15 lines
440 B
Text

$NetBSD: patch-ad,v 1.1 2010/09/10 07:31:45 taca Exp $
Use modern Ruby API.
--- ext/ming/mingc/swftext.c.orig 2008-02-24 18:03:41.000000000 +0000
+++ ext/ming/mingc/swftext.c
@@ -150,7 +150,7 @@ rb_SWFText_add_UTF8_string(int argc, VAL
if (advance == Qnil) {
adv = 0;
} else {
- len = RARRAY(advance)->len;
+ len = RARRAY_LEN(advance);
adv = ALLOC_N(int, len);
/* unefficient, but easy to implement... */