1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Handle non-autoconf build correctly with new changes (CVS 4832)

FossilOrigin-Name: e2a9f5f1054f077e4773dd3d2c8f2ce5be118a01
This commit is contained in:
mlcreech
2008-03-06 09:58:50 +00:00
parent 7ff4a45e4e
commit a9e852b667
13 changed files with 55 additions and 48 deletions

View File

@@ -145,7 +145,7 @@ int sqlite3_get_table(
res.azResult[0] = 0;
rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg);
assert( sizeof(res.azResult[0])>= sizeof(res.nData) );
res.azResult[0] = (char*)(intptr_t)res.nData;
res.azResult[0] = (char*)(sqlite3_intptr_t)res.nData;
if( (rc&0xff)==SQLITE_ABORT ){
sqlite3_free_table(&res.azResult[1]);
if( res.zErrMsg ){
@@ -187,10 +187,10 @@ void sqlite3_free_table(
char **azResult /* Result returned from from sqlite3_get_table() */
){
if( azResult ){
intptr_t i, n;
sqlite3_intptr_t i, n;
azResult--;
assert( azResult!=0 );
n = (intptr_t)azResult[0];
n = (sqlite3_intptr_t)azResult[0];
for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); }
sqlite3_free(azResult);
}