summaryrefslogtreecommitdiffstats
path: root/regenc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-08 06:40:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-08 06:40:33 +0000
commit234b82336d94f6850c6975dd5e5851beb011ebc6 (patch)
tree506115a472217faa963e0d0097e00aecfdbea363 /regenc.c
parent5b19e2b6406290b393b3d803eb1fb464bc6a4acf (diff)
downloadruby-234b82336d94f6850c6975dd5e5851beb011ebc6.tar.gz
ruby-234b82336d94f6850c6975dd5e5851beb011ebc6.tar.xz
ruby-234b82336d94f6850c6975dd5e5851beb011ebc6.zip
* regenc.c (onigenc_strlen_null, onigenc_str_bytelen_null): suppressed
warnings. * regenc.h, enc/unicode.c (onigenc_unicode_ctype_code_range): added encoding argument. * enc/utf{16,32}_{be,le}.c: added init functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regenc.c')
-rw-r--r--regenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regenc.c b/regenc.c
index c6262b090..7bc978a09 100644
--- a/regenc.c
+++ b/regenc.c
@@ -125,7 +125,7 @@ onigenc_strlen_null(OnigEncoding enc, const UChar* s)
{
int n = 0;
UChar* p = (UChar* )s;
- UChar* e = p + strlen(s);
+ UChar* e = p + strlen((const char *)s);
while (1) {
if (*p == '\0') {
@@ -151,7 +151,7 @@ onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
{
UChar* start = (UChar* )s;
UChar* p = (UChar* )s;
- UChar* e = p + strlen(s);
+ UChar* e = p + strlen((const char *)s);
while (1) {
if (*p == '\0') {