]> granicus.if.org Git - php/commitdiff
Use LL_MASK for SQL_INT64 data formatting
authorPopa Adrian Marius <mapopa@gmail.com>
Thu, 3 Dec 2015 15:12:02 +0000 (17:12 +0200)
committerPopa Adrian Marius <mapopa@gmail.com>
Thu, 3 Dec 2015 15:12:02 +0000 (17:12 +0200)
ext/pdo_firebird/firebird_statement.c

index c482664f5a764c3eb9bb3f16ec39d3e14c78cdf7..593b3f131b001531d56570904277320c8cbe088a 100644 (file)
@@ -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);