mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
19 lines
559 B
Plaintext
19 lines
559 B
Plaintext
$NetBSD: patch-ac,v 1.1 2010/09/10 07:31:45 taca Exp $
|
|
|
|
Use modern Ruby API.
|
|
|
|
--- ext/ming/mingc/swffiltermatrix.c.orig 2008-03-09 20:12:44.000000000 +0000
|
|
+++ ext/ming/mingc/swffiltermatrix.c
|
|
@@ -43,9 +43,9 @@ rb_SWFFilterMatrix_new(self, cols, rows,
|
|
struct RSWFFilterMatrix *fm = ALLOC(struct RSWFFilterMatrix);
|
|
int i;
|
|
|
|
- int size = RARRAY(vals)->len;
|
|
+ int size = RARRAY_LEN(vals);
|
|
float *tab = (float *)malloc(cols*rows*sizeof(float));
|
|
- VALUE *ptr = RARRAY(vals)->ptr;
|
|
+ VALUE *ptr = RARRAY_PTR(vals);
|
|
|
|
for (i=0;i<size;i++,ptr++) {
|
|
|