com php-src: Use LL_MASK for SQL_INT64 data for matting: ext/pdo_firebird/firebird_statement.c
| From: | Popa Adrian Marius | Date: | Thu, 03 Dec 2015 15:12:02 +0000 |
| Subject: | com php-src: Use LL_MASK for SQL_INT64 data for matting: ext/pdo_firebird/firebird_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90083@lists.php.net to get a copy of this message | ||
Commit: 8da575231101e240db0670cd9f3105e9cb07e071
Author: Popa Adrian Marius <mapopa@gmail.com> Thu, 3 Dec 2015 17:12:02 +0200
Parents: 4173a667fab0c77d1704a6b9d9a8e6ab1209ff72
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8da575231101e240db0670cd9f3105e9cb07e071
Log:
Use LL_MASK for SQL_INT64 data formatting
Changed paths:
M ext/pdo_firebird/firebird_statement.c
Diff:
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c
index c482664..593b3f1 100644
--- a/ext/pdo_firebird/firebird_statement.c
+++ b/ext/pdo_firebird/firebird_statement.c
@@ -371,7 +371,7 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{
break;
case SQL_INT64:
*ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
- *len = slprintf(*ptr, CHAR_BUF_LEN, "%ld" LL_MASK "d",
*(ISC_INT64*)var->sqldata);
+ *len = slprintf(*ptr, CHAR_BUF_LEN, "%" LL_MASK "d",
*(ISC_INT64*)var->sqldata);
break;
case SQL_FLOAT:
*ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);