summaryrefslogtreecommitdiff
path: root/enc/shift_jis.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-17 13:06:34 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-17 13:06:34 +0000
commitd7baa40cac61f9d3af3c5a8b615ca0dd303cb8c2 (patch)
treed40a7d19dded828106e9ab3823708cb01b891f92 /enc/shift_jis.c
parent42eabfcca25d988b764412e18c3dec5208864a7e (diff)
downloadruby-d7baa40cac61f9d3af3c5a8b615ca0dd303cb8c2.tar.gz
* 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/shift_jis.c')
-rw-r--r--enc/shift_jis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/shift_jis.c b/enc/shift_jis.c
index ba1fde32e8..d5d631e5c5 100644
--- a/enc/shift_jis.c
+++ b/enc/shift_jis.c
@@ -294,11 +294,11 @@ init_property_list(void)
static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
- int ctype;
+ st_data_t ctype;
PROPERTY_LIST_INIT_CHECK;
- if (onig_st_lookup_strend(PropertyNameTable, p, end, (void*)&ctype) == 0) {
+ if (onig_st_lookup_strend(PropertyNameTable, p, end, &ctype) == 0) {
return onigenc_minimum_property_name_to_ctype(enc, p, end);
}