From: Felipe Pena Date: Mon, 27 Jun 2011 01:36:39 +0000 (+0000) Subject: - Fixed data type usage in 64bit X-Git-Tag: php-5.3.7RC2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92ef080a2e096fdbf57c7777c39e90fbdb850e50;p=php - Fixed data type usage in 64bit Reported by: Leonildo Costa --- diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index f257649693..97b5747863 100755 --- a/ext/pdo_odbc/odbc_driver.c +++ b/ext/pdo_odbc/odbc_driver.c @@ -224,7 +224,7 @@ static long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRML { pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; RETCODE rc; - long row_count = -1; + SQLLEN row_count = -1; PDO_ODBC_HSTMT stmt; rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt); diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 85061dfb84..12c5bc4bb2 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -164,7 +164,7 @@ static int odbc_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) RETCODE rc; pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; char *buf = NULL; - long row_count = -1; + SQLLEN row_count = -1; if (stmt->executed) { SQLCloseCursor(S->stmt); diff --git a/ext/pdo_odbc/php_pdo_odbc_int.h b/ext/pdo_odbc/php_pdo_odbc_int.h index 2472e770d7..4c216ffafa 100755 --- a/ext/pdo_odbc/php_pdo_odbc_int.h +++ b/ext/pdo_odbc/php_pdo_odbc_int.h @@ -136,7 +136,7 @@ typedef struct { typedef struct { char *data; unsigned long datalen; - long fetched_len; + SQLLEN fetched_len; SWORD coltype; char colname[128]; unsigned is_long;