diff options
author | Georg Richter <georg@php.net> | 2006-04-05 12:17:08 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2006-04-05 12:17:08 +0000 |
commit | 0944a471076766a34b2ad2aac21aa34748c6e791 (patch) | |
tree | 4cfa9daf9bba15fde28ba43bcd2f4384d00db8e1 /ext/mysqli/mysqli_prop.c | |
parent | e25a1dccac9cbed2cb8d8860519e2ab49e25d30a (diff) | |
download | php-git-0944a471076766a34b2ad2aac21aa34748c6e791.tar.gz |
fixed bigint conversion on windows platforms
Diffstat (limited to 'ext/mysqli/mysqli_prop.c')
-rw-r--r-- | ext/mysqli/mysqli_prop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c index 690a085c1b..db7b637728 100644 --- a/ext/mysqli/mysqli_prop.c +++ b/ext/mysqli/mysqli_prop.c @@ -86,7 +86,7 @@ static int __func(mysqli_object *obj, zval **retval TSRMLS_DC) \ ZVAL_LONG(*retval, l);\ } else { \ char ret[40]; \ - sprintf(ret, "%llu", (my_ulonglong)l); \ + sprintf(ret, MYSQLI_LLU_SPEC, (my_ulonglong)l); \ ZVAL_STRING(*retval, ret, 1); \ } \ }\ @@ -176,7 +176,7 @@ static int link_affected_rows_read(mysqli_object *obj, zval **retval TSRMLS_DC) ZVAL_LONG(*retval, rc); } else { char ret[40]; - sprintf(ret, "%llu", (my_ulonglong) rc); + sprintf(ret, MYSQLI_LLU_SPEC, (my_ulonglong) rc); ZVAL_STRING(*retval, ret, 1); } } @@ -295,7 +295,7 @@ static int stmt_affected_rows_read(mysqli_object *obj, zval **retval TSRMLS_DC) ZVAL_LONG(*retval, rc); } else { char ret[40]; - sprintf(ret, "%llu", (my_ulonglong) rc); + sprintf(ret, MYSQLI_LLU_SPEC, (my_ulonglong) rc); ZVAL_STRING(*retval, ret, 1); } } |