diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 21:23:42 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 21:23:42 +0000 |
commit | 78df33a0c14bc330f983f4a27c334c2cfbec9c2e (patch) | |
tree | 3d8c5afb19e6def1f1ea5e52b4a668ad53cd8c37 /enc | |
parent | 80b64d145a30613a7d357f9f942e5846c064ea0e (diff) | |
download | bundler-78df33a0c14bc330f983f4a27c334c2cfbec9c2e.tar.gz |
* enc/utf_16le.c: surpress warning: shorten-64-to-32.
* ext/dbm/dbm.c: ditto.
* ext/gdbm/gdbm.c: ditto.
* parse.y (Init_ripper): surpress warning: unused value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/utf_16le.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/utf_16le.c b/enc/utf_16le.c index 0dec8f98c5..e972cb95f0 100644 --- a/enc/utf_16le.c +++ b/enc/utf_16le.c @@ -56,7 +56,7 @@ static int utf16le_mbc_enc_len(const UChar* p, const OnigUChar* e, OnigEncoding enc ARG_UNUSED) { - ptrdiff_t len = e - p; + int len = (int)(e - p); UChar byte; if (len < 2) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(1); |