abies Mon Jun 28 07:27:06 2004 EDT Modified files: /php-src/ext/interbase ibase_query.c Log: MFB Fixed bug #28897 (-1 returned as -0.000 for 64-bit scaled int) http://cvs.php.net/diff.php/php-src/ext/interbase/ibase_query.c?r1=1.18&r2=1.19&ty=u Index: php-src/ext/interbase/ibase_query.c diff -u php-src/ext/interbase/ibase_query.c:1.18 php-src/ext/interbase/ibase_query.c:1.19 --- php-src/ext/interbase/ibase_query.c:1.18 Sat Jun 12 16:52:07 2004 +++ php-src/ext/interbase/ibase_query.c Mon Jun 28 07:27:05 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ibase_query.c,v 1.18 2004/06/12 20:52:07 abies Exp $ */ +/* $Id: ibase_query.c,v 1.19 2004/06/28 11:27:05 abies Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1321,7 +1321,7 @@ if (n >= 0) { l = sprintf(string_data, "%" LL_MASK "d.%0*" LL_MASK "d", n / f, -scale, n % f); - } else if (n < -f) { + } else if (n <= -f) { l = sprintf(string_data, "%" LL_MASK "d.%0*" LL_MASK "d", n / f, -scale, -n % f); } else { l = sprintf(string_data, "-0.%0*" LL_MASK "d", -scale, -n % f); @@ -1340,7 +1340,7 @@ if (n >= 0) { l = sprintf(string_data, "%ld.%0*ld", n / f, -scale, n % f); - } else if (n < -f) { + } else if (n <= -f) { l = sprintf(string_data, "%ld.%0*ld", n / f, -scale, -n % f); } else { l = sprintf(string_data, "-0.%0*ld", -scale, -n % f);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php