diff options
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 2 | ||||
-rw-r--r-- | include/ruby/oniguruma.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index dc9b97439f..100e356218 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -120,7 +120,7 @@ int rb_enc_precise_mbclen(const char *p, const char *e, rb_encoding *enc); int rb_enc_ascget(const char *p, const char *e, int *len, rb_encoding *enc); /* -> code or raise exception */ -int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc); +unsigned int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc); #define rb_enc_mbc_to_codepoint(p, e, enc) ONIGENC_MBC_TO_CODE(enc,(UChar*)(p),(UChar*)(e)) /* -> codelen>0 or raise exception */ diff --git a/include/ruby/oniguruma.h b/include/ruby/oniguruma.h index 1784348e16..2e3b2bf293 100644 --- a/include/ruby/oniguruma.h +++ b/include/ruby/oniguruma.h @@ -104,7 +104,7 @@ extern "C" { #endif typedef unsigned char OnigUChar; -typedef unsigned long OnigCodePoint; +typedef unsigned int OnigCodePoint; typedef unsigned int OnigCtype; typedef unsigned int OnigDistance; |