Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the return value type of unf_delete().

Pointed out by Daniel Berger.
  • Loading branch information...
commit ec4724e46688544ffb3082bc56eddbfcb9ec8fe1 1 parent 7bd637a
@knu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/unf_ext/unf.cc
View
4 ext/unf_ext/unf.cc
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.