summaryrefslogtreecommitdiff
path: root/ext/sdbm/_sdbm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 08:40:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 08:40:37 +0000
commit475422fac63b3a3436dc1af45a471041ca05a611 (patch)
treee39825593bc5214a8835583a9a6a67175723a084 /ext/sdbm/_sdbm.c
parent2a19074c6531fca99743a033b48a815d01f09409 (diff)
* 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.c4
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));