fix compile warning, storm's a comming lord

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5764 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-09-29 00:59:29 +00:00
parent 2581d80ec1
commit 834b17948f
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
** if they are not used. ** if they are not used.
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -144,7 +145,7 @@ int sqlite3_get_table(
rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg);
if( res.azResult ){ if( res.azResult ){
assert( sizeof(res.azResult[0])>= sizeof(res.nData) ); assert( sizeof(res.azResult[0])>= sizeof(res.nData) );
res.azResult[0] = (char*)(intptr_t *)res.nData; res.azResult[0] = (char*)(long)res.nData;
} }
if( (rc&0xff)==SQLITE_ABORT ){ if( (rc&0xff)==SQLITE_ABORT ){
sqlite3_free_table(&res.azResult[1]); sqlite3_free_table(&res.azResult[1]);
@ -189,7 +190,7 @@ void sqlite3_free_table(
int i, n; int i, n;
azResult--; azResult--;
if( azResult==0 ) return; if( azResult==0 ) return;
n = (int)(intptr_t *)azResult[0]; n = (long) azResult[0];
for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); } for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); }
sqlite3_free(azResult); sqlite3_free(azResult);
} }