[macruby-changes] [784] MacRuby/trunk/objc.m
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jan 9 21:24:33 PST 2009
Revision: 784
http://trac.macosforge.org/projects/ruby/changeset/784
Author: lsansonetti at apple.com
Date: 2009-01-09 21:24:32 -0800 (Fri, 09 Jan 2009)
Log Message:
-----------
testing a commit from svn
Modified Paths:
--------------
MacRuby/trunk/objc.m
Modified: MacRuby/trunk/objc.m
===================================================================
--- MacRuby/trunk/objc.m 2009-01-10 05:01:34 UTC (rev 783)
+++ MacRuby/trunk/objc.m 2009-01-10 05:24:32 UTC (rev 784)
@@ -186,8 +186,9 @@
GC_ROOT(&ary_ffi_types);
}
- if (st_lookup(ary_ffi_types, (st_data_t)size, (st_data_t *)&type))
+ if (st_lookup(ary_ffi_types, (st_data_t)size, (st_data_t *)&type)) {
return type;
+ }
type = (ffi_type *)malloc(sizeof(ffi_type));
@@ -196,8 +197,9 @@
type->type = FFI_TYPE_STRUCT;
type->elements = malloc(size * sizeof(ffi_type *));
- for (i = 0; i < size; i++)
+ for (i = 0; i < size; i++) {
type->elements[i] = &ffi_type_uchar;
+ }
st_insert(ary_ffi_types, (st_data_t)size, (st_data_t)type);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090109/4fd1dd36/attachment.html>
More information about the macruby-changes
mailing list