apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587617 - /apr/apr-util/branches/1.2.x/dbm/sdbm/sdbm_pair.c
Date Tue, 23 Oct 2007 19:09:15 GMT
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));
 /*



Mime
View raw message