diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-27 08:40:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-27 08:40:37 +0000 |
commit | 475422fac63b3a3436dc1af45a471041ca05a611 (patch) | |
tree | e39825593bc5214a8835583a9a6a67175723a084 /ext/sdbm/_sdbm.c | |
parent | 2a19074c6531fca99743a033b48a815d01f09409 (diff) | |
download | ruby-475422fac63b3a3436dc1af45a471041ca05a611.tar.gz |
* ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm/_sdbm.c')
-rw-r--r-- | ext/sdbm/_sdbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c index c348808d31..874239a276 100644 --- a/ext/sdbm/_sdbm.c +++ b/ext/sdbm/_sdbm.c @@ -672,8 +672,8 @@ fitpair(char *pag, int need) register short *ino = (short *) pag; off = ((n = GET_SHORT(ino,0)) > 0) ? GET_SHORT(ino,n) : PBLKSIZ; - free = off - (n + 1) * sizeof(short); - need += 2 * sizeof(short); + free = off - (n + 1) * (int)sizeof(short); + need += 2 * (int)sizeof(short); debug(("free %d need %d\n", free, need)); |