ruby-changes:22784
From: nobu <ko1@a...>
Date: Mon, 27 Feb 2012 17:40:46 +0900 (JST)
Subject: [ruby-changes:22784] nobu:r34833 (trunk): * ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns.
nobu 2012-02-27 17:40:37 +0900 (Mon, 27 Feb 2012) New Revision: 34833 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34833 Log: * ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns. Modified files: trunk/ext/sdbm/_sdbm.c Index: ext/sdbm/_sdbm.c =================================================================== --- ext/sdbm/_sdbm.c (revision 34832) +++ ext/sdbm/_sdbm.c (revision 34833) @@ -672,8 +672,8 @@ 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)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/