]> granicus.if.org Git - php/commitdiff
The first element of the array seems to store the members count
authorSascha Schumann <sas@php.net>
Sun, 17 Aug 2003 13:59:59 +0000 (13:59 +0000)
committerSascha Schumann <sas@php.net>
Sun, 17 Aug 2003 13:59:59 +0000 (13:59 +0000)
Add a cast to (long) to quiet the compiler

ext/sqlite/libsqlite/src/table.c

index 71f0b59a3ae2aab84800cb9b1f8ce88d88072891..e0965cb30bc8c3034fec7218e8d336c2d93c7cb9 100644 (file)
@@ -195,7 +195,7 @@ void sqlite_free_table(
     int i, n;
     azResult--;
     if( azResult==0 ) return;
-    n = (int)azResult[0];
+    n = (int)(long)azResult[0];
     for(i=1; i<n; i++){ if( azResult[i] ) free(azResult[i]); }
     free(azResult);
   }