Following patch applied to the CVS version compiled
w/o warnings on a CentOS 5 x86_64 box. But I didn't
run the test yet ... and autoconf logic regarding
availability of ptrdiff_t is missing, too.

Index: src/func.c
===================================================================
RCS file: /sqlite/sqlite/src/func.c,v
retrieving revision 1.181
diff -r1.181 func.c
878c878
<   int flags;                        /* 1: trimleft  2: trimright  3: trim */
---
>   ptrdiff_t flags;                  /* 1: trimleft  2: trimright  3: trim */
919c919
<     flags = (int)sqlite3_user_data(context);
---
>     flags = (ptrdiff_t)sqlite3_user_data(context);
1464c1464
<       pArg = (void*)(int)argType;
---
>       pArg = (void*)(ptrdiff_t)argType;
1483c1483
<     void *pArg = (void*)(int)aAggs[i].argType;
---
>     void *pArg = (void*)(ptrdiff_t)aAggs[i].argType;
Index: src/table.c
===================================================================
RCS file: /sqlite/sqlite/src/table.c,v
retrieving revision 1.29
diff -r1.29 table.c
36c36
<   int nData;
---
>   ptrdiff_t nData;
197c197,198
<     int i, n;
---
>     int i;
>     ptrdiff_t n;
200c201
<     n = (int)azResult[0];
---
>     n = (ptrdiff_t)azResult[0];
Index: src/vdbemem.c
===================================================================
RCS file: /sqlite/sqlite/src/vdbemem.c,v
retrieving revision 1.84
diff -r1.84 vdbemem.c
878c878
<     if( (enc & SQLITE_UTF16_ALIGNED)!=0 && 1==(1&(int)pVal->z) ){
---
>     if( (enc & SQLITE_UTF16_ALIGNED)!=0 && 1==(1&(ptrdiff_t)pVal->z) ){

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to