monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] sqlite fix for gcc-4.2.x bug..


From: jack-montone
Subject: [Monotone-devel] sqlite fix for gcc-4.2.x bug..
Date: Sun, 29 Jul 2007 23:52:02 -0700
User-agent: Mutt/1.4.1i

Could someone apply this patch to mainline?

References: 
    http://www.sqlite.org/cvstrac/tktview?tn=2469,6
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575

(this will fix the failing linux buildbot) 

Thanks,  

--Jack 

#
# old_revision [3ccbf275c1188c1093517db4ad54dac872d6e38a]
#
# patch "src/sqlite/vdbe.c"
#  from [814dab208a156250bc5e77f827f4e0c8ad734820]
#    to [61b2c601fc5aa796f93fcd37da0064c535f0625a]
#
============================================================
--- src/sqlite/vdbe.c   814dab208a156250bc5e77f827f4e0c8ad734820
+++ src/sqlite/vdbe.c   61b2c601fc5aa796f93fcd37da0064c535f0625a
@@ -4191,8 +4191,7 @@ case OP_IntegrityCk: {
   pnErr = &p->aMem[j];
   assert( (pnErr->flags & MEM_Int)!=0 );
   for(j=0; j<nRoot; j++){
-    Mem *pMem = &pTos[-j];
-    aRoot[j] = pMem->u.i;
+    aRoot[j] = (pTos-j)->u.i;
   }
   aRoot[j] = 0;
   popStack(&pTos, nRoot);


--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: F18B 13A3 6D06 D48A 598D  42EA 3D53 BDC8 7917 F802




reply via email to

[Prev in Thread] Current Thread [Next in Thread]