]> granicus.if.org Git - php/commitdiff
'l' is long - int won't work on 64-bit
authorStanislav Malyshev <stas@php.net>
Fri, 26 Nov 2004 13:17:30 +0000 (13:17 +0000)
committerStanislav Malyshev <stas@php.net>
Fri, 26 Nov 2004 13:17:30 +0000 (13:17 +0000)
ext/sqlite/sqlite.c

index b8fa042947bbcab892e367e9fe852392554cb880..298ee3a1b0e382952aa564cba2b7be3e485fabac 100644 (file)
@@ -1581,7 +1581,8 @@ PHP_FUNCTION(sqlite_fetch_column_types)
        zval *object = getThis();
        struct php_sqlite_result res;
        const char **rowdata, **colnames, *tail;
-       int i, ncols, result_type = PHPSQLITE_ASSOC;
+       int i, ncols;
+       long result_type = PHPSQLITE_ASSOC;
 
        if (object) {
                if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &tbl, &tbl_len, &result_type)) {