You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/23 21:09:15 UTC

svn commit: r587617 - /apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c

Author: wrowe
Date: Tue Oct 23 12:09:15 2007
New Revision: 587617

URL: http://svn.apache.org/viewvc?rev=587617&view=rev
Log:
Slightly different than the original, we had refactored
some of this code on trunk.  size'edness issues in sdbm,
which is limited to int's (and in one case is manipulating
an array of short[]'s.)

Backport: r587439

Modified:
    apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c

Modified: apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c?rev=587617&r1=587616&r2=587617&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c (original)
+++ apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c Tue Oct 23 12:09:15 2007
@@ -183,7 +183,7 @@
 		register int m;
 		register char *dst = pag + (i == 1 ? PBLKSIZ : ino[i - 1]);
 		register char *src = pag + ino[i + 1];
-		register int   zoo = dst - src;
+		register short zoo = (short) (dst - src);
 
 		debug(("free-up %d ", zoo));
 /*