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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ffi_gen/java_output.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43bc6326ee11945bede82eb49c7481a27217099a
4
- data.tar.gz: fa9c1dcff4c9cc46df121774b78a3de43908df8b
3
+ metadata.gz: 59badeb70519b6d81f70233f3b9b5f458b3cd837
4
+ data.tar.gz: e226b09ad9744c9e601f47596f9090ee9bfda943
5
5
  SHA512:
6
- metadata.gz: 22209a392916602e57e97af4f5577c53c4ba81d2d9b8a8baf4b7a8ef9330df791bf18ec8e1a0c68801a00e9d320aa9002f87cbd992f630ffecb9b8fdec66abe4
7
- data.tar.gz: f85eef1eedd50c1f337f6d3d0df92d95498992d2d728069fb0603ece080f51eb55f3258fab0c9bf1fc9e40d762aa939aa87620518be15c419c1bf2acae429a85
6
+ metadata.gz: d91da378622756f0f51f5aad6eceb0a06d8af6a3653f452466fc4800a4e6abdfa99094d34a2e7f53962c8395cf4aeff64fd211df885c3e08bb02f3c68745eae0
7
+ data.tar.gz: c263479f3ce193f5f4f420050231300dad6c92f2a41b31143f236c031334f0c7619893353c6154e299867e5e284cae1acd328564f7b98020fbf342c27f04005b
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-ffi_gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Musiol