openbsd-ports/databases/sqlite3/patches/patch-src_test1_c

17 lines
559 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_test1_c,v 1.1 2009/01/31 15:49:34 simon Exp $
Fix test on big endian arches. Bug filed upstream at
http://www.sqlite.org/cvstrac/tktview?tn=3621
--- src/test1.c.orig Sat Jan 31 16:07:27 2009
+++ src/test1.c Sat Jan 31 16:18:33 2009
@@ -1199,7 +1199,7 @@ static int sqlite3_mprintf_int(
int argc, /* Number of arguments */
char **argv /* Text of each argument */
){
- int a[3], i;
+ unsigned int a[3], i;
char *z;
if( argc!=5 ){
Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],