php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60633
Patch bcmath.patch revision 2012-01-01 08:32 UTC by fedora at famillecollet dot com

Patch bcmath.patch for BC math related Bug #60633

Patch version 2012-01-01 08:32 UTC

Return to Bug #60633 | Download this patch
Patch Revisions:

Developer: fedora@famillecollet.com

diff -up ext/bcmath/libbcmath/src/recmul.c.warn ext/bcmath/libbcmath/src/recmul.c
--- ext/bcmath/libbcmath/src/recmul.c.warn	2012-01-01 09:28:36.888987971 +0100
+++ ext/bcmath/libbcmath/src/recmul.c	2012-01-01 09:28:47.643988340 +0100
@@ -183,7 +183,6 @@ _bc_rec_mul (bc_num u, int ulen, bc_num
 	     int full_scale TSRMLS_DC)
 { 
   bc_num u0, u1, v0, v1;
-  int u0len, v0len;
   bc_num m1, m2, m3, d1, d2;
   int n, prodlen, m1zero;
   int d1len, d2len;
@@ -216,10 +215,8 @@ _bc_rec_mul (bc_num u, int ulen, bc_num
     }
   _bc_rm_leading_zeros (u1);
   _bc_rm_leading_zeros (u0);
-  u0len = u0->n_len;
   _bc_rm_leading_zeros (v1);
   _bc_rm_leading_zeros (v0);
-  v0len = v0->n_len;
 
   m1zero = bc_is_zero(u1 TSRMLS_CC) || bc_is_zero(v1 TSRMLS_CC);
 
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Oct 20 03:01:26 2019 UTC