mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix two compiler warnings from OS-X. (CVS 823)
FossilOrigin-Name: 4c22da76ca91f3c59dac1c529e82ac3b04b767bd
This commit is contained in:
@ -15,8 +15,9 @@
|
||||
** data in an SQLite database. The code in this file is used by any other
|
||||
** part of the SQLite library.
|
||||
**
|
||||
** $Id: encode.c,v 1.3 2002/09/16 11:44:06 drh Exp $
|
||||
** $Id: encode.c,v 1.4 2003/01/11 14:25:40 drh Exp $
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
** Encode a binary buffer "in" of size n bytes so that it contains
|
||||
|
@ -13,7 +13,7 @@
|
||||
** the WHERE clause of SQL statements. Also found here are subroutines
|
||||
** to generate VDBE code to evaluate expressions.
|
||||
**
|
||||
** $Id: where.c,v 1.69 2002/12/04 21:50:16 drh Exp $
|
||||
** $Id: where.c,v 1.70 2003/01/11 14:25:40 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@ -348,7 +348,7 @@ WhereInfo *sqliteWhereBegin(
|
||||
nExpr = exprSplit(ARRAYSIZE(aExpr), aExpr, pWhere);
|
||||
if( nExpr==ARRAYSIZE(aExpr) ){
|
||||
char zBuf[50];
|
||||
sprintf(zBuf, "%d", ARRAYSIZE(aExpr)-1);
|
||||
sprintf(zBuf, "%d", (int)ARRAYSIZE(aExpr)-1);
|
||||
sqliteSetString(&pParse->zErrMsg, "WHERE clause too complex - no more "
|
||||
"than ", zBuf, " terms allowed", 0);
|
||||
pParse->nErr++;
|
||||
|
Reference in New Issue
Block a user