ffi 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -31,7 +31,7 @@ PROJ.name = 'ffi'
31
31
  PROJ.authors = 'Wayne Meissner'
32
32
  PROJ.email = 'wmeissner@gmail.com'
33
33
  PROJ.url = 'http://kenai.com/projects/ruby-ffi'
34
- PROJ.version = '0.3.3'
34
+ PROJ.version = '0.3.4'
35
35
  PROJ.rubyforge.name = 'ffi'
36
36
  PROJ.readme_file = 'README.rdoc'
37
37
 
@@ -287,6 +287,7 @@ rb_FFI_AbstractMemory_cast(VALUE obj, VALUE klass)
287
287
  return memory;
288
288
  }
289
289
  rb_raise(rb_eArgError, "Invalid Memory object");
290
+ return NULL;
290
291
  }
291
292
 
292
293
  static VALUE
@@ -32,12 +32,14 @@ static VALUE
32
32
  nullptr_op(int argc, VALUE* argv, VALUE self)
33
33
  {
34
34
  rb_raise(NullPointerError, "NULL Pointer access attempted");
35
+ return Qnil;
35
36
  }
36
37
 
37
38
  static VALUE
38
39
  nullptr_op_get(AbstractMemory* ptr, long offset)
39
40
  {
40
41
  rb_raise(NullPointerError, "NULL Pointer access attempted");
42
+ return Qnil;
41
43
  }
42
44
 
43
45
  static void
@@ -72,5 +72,6 @@ rb_FFI_NativeValueToRuby(NativeType type, const void* ptr)
72
72
  return rb_FFI_Pointer_new(*(void **) ptr);
73
73
  default:
74
74
  rb_raise(rb_eRuntimeError, "Unknown type: %d", type);
75
+ return Qnil;
75
76
  }
76
77
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Meissner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-27 00:00:00 +10:00
12
+ date: 2009-05-01 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency