jl4rb 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/jl4rb/jl4rb.c +3 -2
- data/jl4rb.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f22d52581fd5c000248906cd62b98fb64fe625d0
|
4
|
+
data.tar.gz: 37ae387be14f0fb2ff6f5b1c055707795f76629d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed9f210397451078f1026c3854c6675d8df20f8c698ae811ff333adad3c49fd6157990dcf4d2a4cf5a2cd30be08404b318a17bc6e938ad0831c64ab35e83954
|
7
|
+
data.tar.gz: 17b4b192faea86b6cddbc4789f81f24c94129d083bf9256152fd6088bde65d5ec5447eb5f9501911b1ddbf5f31ef7f4fc9e6f2812d6536a3d1856b7d540c8092
|
data/ext/jl4rb/jl4rb.c
CHANGED
@@ -156,10 +156,11 @@ VALUE jl_value_to_VALUE(jl_value_t *res) {
|
|
156
156
|
if(strcmp(jl_typeof_str(res),"Tuple")==0 )
|
157
157
|
//if(jl_is_array(res))
|
158
158
|
{
|
159
|
-
d=jl_tuple_len(res);
|
159
|
+
d=jl_nfields(res); //Before O.3: d=jl_tuple_len(res);
|
160
160
|
resRb = rb_ary_new2(d);
|
161
161
|
for(i=0;i<d;i++) {
|
162
|
-
rb_ary_store(resRb,i,jl_value_to_VALUE(jl_tupleref(res,i)));
|
162
|
+
//rb_ary_store(resRb,i,jl_value_to_VALUE(jl_tupleref(res,i)));
|
163
|
+
rb_ary_store(resRb,i,jl_value_to_VALUE(jl_fieldref(res,i)));
|
163
164
|
}
|
164
165
|
return resRb;
|
165
166
|
}
|
data/jl4rb.gemspec
CHANGED