diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-17 13:06:34 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-17 13:06:34 +0000 |
commit | d7baa40cac61f9d3af3c5a8b615ca0dd303cb8c2 (patch) | |
tree | d40a7d19dded828106e9ab3823708cb01b891f92 /enc/unicode.c | |
parent | 42eabfcca25d988b764412e18c3dec5208864a7e (diff) |
* enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)
differs from sizeof(long).
* enc/shift_jis.c (property_name_to_ctype): ditto.
* enc/unicode.c (onigenc_unicode_property_name_to_ctype): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index bcd82e54fa..2dfcbba3f6 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -10817,7 +10817,8 @@ static int init_name_ctype_table(void) extern int onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end) { - int len, ctype; + int len; + st_data_t ctype; UChar buf[PROPERTY_NAME_MAX_SIZE]; UChar *p; OnigCodePoint code; @@ -10841,7 +10842,7 @@ onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end if (NameTableInited == 0) init_name_ctype_table(); if (onig_st_lookup_strend(NameCtypeTable, buf, buf + len, - (void*)&ctype) == 0) { + &ctype) == 0) { return ONIGERR_INVALID_CHAR_PROPERTY_NAME; } |