ghazel-ffi_gen 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ffi_gen/java_output.rb +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: 59badeb70519b6d81f70233f3b9b5f458b3cd837
|
4
|
+
data.tar.gz: e226b09ad9744c9e601f47596f9090ee9bfda943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91da378622756f0f51f5aad6eceb0a06d8af6a3653f452466fc4800a4e6abdfa99094d34a2e7f53962c8395cf4aeff64fd211df885c3e08bb02f3c68745eae0
|
7
|
+
data.tar.gz: c263479f3ce193f5f4f420050231300dad6c92f2a41b31143f236c031334f0c7619893353c6154e299867e5e284cae1acd328564f7b98020fbf342c27f04005b
|
data/lib/ffi_gen/java_output.rb
CHANGED
@@ -172,7 +172,7 @@ class FFIGen
|
|
172
172
|
if lp && lp[:type].is_a?(PointerType) && lp[:type].pointee_type.clang_type == :u_char && p[:type].clang_type == :u_long
|
173
173
|
n = lp[:name].to_java_downcase
|
174
174
|
replace[n] = "bytesToPointer(#{n})"
|
175
|
-
replace[p[:name].to_java_downcase] = "#{n}.length";
|
175
|
+
replace[p[:name].to_java_downcase] = "new NativeLong(#{n}.length)";
|
176
176
|
d = lp.dup
|
177
177
|
d[:type] = ArrayType.new(lp[:type].pointee_type, nil)
|
178
178
|
parameters << d
|