Permalink
Browse files

Fix the return value type of unf_delete().

Pointed out by Daniel Berger.
  • Loading branch information...
knu committed May 30, 2012
1 parent 7bd637a commit ec4724e46688544ffb3082bc56eddbfcb9ec8fe1
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/unf_ext/unf.cc
View
@@ -8,7 +8,7 @@
extern "C" {
VALUE unf_allocate(VALUE klass);
VALUE unf_initialize(VALUE self);
- VALUE unf_delete(UNF::Normalizer* ptr);
+ void unf_delete(UNF::Normalizer* ptr);
VALUE unf_normalize(VALUE self, VALUE source, VALUE normalization_form);
ID FORM_NFD;
@@ -42,7 +42,7 @@ extern "C" {
return self;
}
- VALUE unf_delete(UNF::Normalizer* ptr) {
+ void unf_delete(UNF::Normalizer* ptr) {
ptr->~Normalizer();
ruby_xfree(ptr);
}

0 comments on commit ec4724e

Please sign in to comment.