Index: src/vdbe.c ================================================================== --- src/vdbe.c +++ src/vdbe.c @@ -34,11 +34,11 @@ ** documentation, headers files, or other derived files. The formatting ** of the code in this file is, therefore, important. See other comments ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** -** $Id: vdbe.c,v 1.236 2003/08/16 12:37:52 drh Exp $ +** $Id: vdbe.c,v 1.237 2003/08/26 11:35:00 drh Exp $ */ #include "sqliteInt.h" #include "os.h" #include @@ -580,11 +580,11 @@ ** On the P3 argument of the given instruction, change all ** strings of whitespace characters into a single space and ** delete leading and trailing whitespace. */ void sqliteVdbeCompressSpace(Vdbe *p, int addr){ - char *z; + unsigned char *z; int i, j; Op *pOp; assert( p->magic==VDBE_MAGIC_INIT ); if( p->aOp==0 || addr<0 || addr>=p->nOp ) return; pOp = &p->aOp[addr]; @@ -593,11 +593,11 @@ } if( pOp->p3type!=P3_DYNAMIC ){ pOp->p3 = sqliteStrDup(pOp->p3); pOp->p3type = P3_DYNAMIC; } - z = pOp->p3; + z = (unsigned char*)pOp->p3; if( z==0 ) return; i = j = 0; while( isspace(z[i]) ){ i++; } while( z[i] ){ if( isspace(z[i]) ){