[Freeswitch-svn] [commit] r5763 - freeswitch/trunk/libs/sqlite/src

Freeswitch SVN anthm at freeswitch.org
Fri Sep 28 20:33:09 EDT 2007


Author: anthm
Date: Fri Sep 28 20:33:08 2007
New Revision: 5763

Modified:
   freeswitch/trunk/libs/sqlite/src/table.c

Log:
fix warn

Modified: freeswitch/trunk/libs/sqlite/src/table.c
==============================================================================
--- freeswitch/trunk/libs/sqlite/src/table.c	(original)
+++ freeswitch/trunk/libs/sqlite/src/table.c	Fri Sep 28 20:33:08 2007
@@ -144,7 +144,7 @@
   rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg);
   if( res.azResult ){
     assert( sizeof(res.azResult[0])>= sizeof(res.nData) );
-    res.azResult[0] = (char*)res.nData;
+    res.azResult[0] = (char*)(intptr_t *)res.nData;
   }
   if( (rc&0xff)==SQLITE_ABORT ){
     sqlite3_free_table(&res.azResult[1]);
@@ -189,7 +189,7 @@
     int i, n;
     azResult--;
     if( azResult==0 ) return;
-    n = (int)azResult[0];
+    n = (int)(intptr_t *)azResult[0];
     for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); }
     sqlite3_free(azResult);
   }



More information about the Freeswitch-svn mailing list