abies           Mon Jun 28 07:24:56 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/interbase      interbase.c 
  Log:
  Fixed bug #28897 (-1 returned as -0.000 for 64-bit scaled int)
  
  
http://cvs.php.net/diff.php/php-src/ext/interbase/interbase.c?r1=1.91.2.32&r2=1.91.2.33&ty=u
Index: php-src/ext/interbase/interbase.c
diff -u php-src/ext/interbase/interbase.c:1.91.2.32 
php-src/ext/interbase/interbase.c:1.91.2.33
--- php-src/ext/interbase/interbase.c:1.91.2.32 Fri May  7 11:17:12 2004
+++ php-src/ext/interbase/interbase.c   Mon Jun 28 07:24:55 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: interbase.c,v 1.91.2.32 2004/05/07 15:17:12 abies Exp $ */
+/* $Id: interbase.c,v 1.91.2.33 2004/06/28 11:24:55 abies Exp $ */
 
 
 /* TODO: Arrays, roles?
@@ -643,7 +643,7 @@
 
        php_info_print_table_start();
        php_info_print_table_row(2, "Interbase Support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.32 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.33 $");
 #ifdef COMPILE_DL_INTERBASE
        php_info_print_table_row(2, "Dynamic Module", "yes");
 #endif
@@ -1856,7 +1856,7 @@
                                if (n >= 0) {
                                        Z_STRLEN_P(val) = sprintf (string_data, 
                                                "%" ISC_INT64_FORMAT "d.%0*" 
ISC_INT64_FORMAT "d", n / f, -scale, n % f);
-                               } else if (n < -f) {
+                               } else if (n <= -f) {
                                        Z_STRLEN_P(val) = sprintf (string_data,
                                                "%" ISC_INT64_FORMAT "d.%0*" 
ISC_INT64_FORMAT "d", n / f, -scale, -n % f);
                                } else {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to