* 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
This commit is contained in:
nobu 2012-02-27 08:40:37 +00:00
parent 2a19074c65
commit 475422fac6

View file

@ -672,8 +672,8 @@ fitpair(char *pag, int need)
register short *ino = (short *) pag; register short *ino = (short *) pag;
off = ((n = GET_SHORT(ino,0)) > 0) ? GET_SHORT(ino,n) : PBLKSIZ; off = ((n = GET_SHORT(ino,0)) > 0) ? GET_SHORT(ino,n) : PBLKSIZ;
free = off - (n + 1) * sizeof(short); free = off - (n + 1) * (int)sizeof(short);
need += 2 * sizeof(short); need += 2 * (int)sizeof(short);
debug(("free %d need %d\n", free, need)); debug(("free %d need %d\n", free, need));