shire           Sun Jun  3 09:12:04 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/standard       formatted_print.c 
  Log:
  MFH: Change printf %u behavior so that it does not truncate numbers at 
32-bits.  (Reported by Aditya Agarwal.)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/formatted_print.c?r1=1.82.2.1.2.15&r2=1.82.2.1.2.16&diff_format=u
Index: php-src/ext/standard/formatted_print.c
diff -u php-src/ext/standard/formatted_print.c:1.82.2.1.2.15 
php-src/ext/standard/formatted_print.c:1.82.2.1.2.16
--- php-src/ext/standard/formatted_print.c:1.82.2.1.2.15        Mon Apr  9 
21:19:38 2007
+++ php-src/ext/standard/formatted_print.c      Sun Jun  3 09:12:04 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: formatted_print.c,v 1.82.2.1.2.15 2007/04/09 21:19:38 tony2001 Exp $ */
+/* $Id: formatted_print.c,v 1.82.2.1.2.16 2007/06/03 09:12:04 shire Exp $ */
 
 #include <math.h>                              /* modf() */
 #include "php.h"
@@ -174,7 +174,7 @@
 
        PRINTF_DEBUG(("sprintf: appenduint(%x, %x, %x, %d, %d, '%c', %d)\n",
                                  *buffer, pos, size, number, width, padding, 
alignment));
-       magn = (unsigned int) number;
+       magn = (unsigned long) number;
 
        /* Can't right-pad 0's on integers */
        if (alignment == 0 && padding == '0') padding = ' ';

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

Reply via email to