From: Date: June 19 2007 4:02am Subject: bk commit into 6.0-falcon tree (chris:1.2576) BUG#26607 List-Archive: http://lists.mysql.com/commits/29052 X-Bug: 26607 Message-Id: <20070619020220.7E6A71D89D@terrazzo.site> Below is the list of changes that have just been committed into a local 6.0-falcon repository of root. When root does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-06-18 21:02:14-05:00, chris@stripped +1 -0 Pushbuild break, BigInt division. Replaced calls to malloca/freea with malloc/free in BigInt.cpp. WL#3923 "Arbitrary Precision Division for Falcon BigInt Bug#26607 "Falcon: decimal(31,30) does not work" Bug#28725 "Falcon: crash with decimal" storage/falcon/BigInt.cpp@stripped, 2007-06-18 21:02:12-05:00, chris@stripped +5 -4 BigInt division. Replaced malloca() and freea() with malloc() and free(). # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: chris # Host: terrazzo.site # Root: /home/chris/work/dev/dev-9/mysql-5.1-falcon --- 1.11/storage/falcon/BigInt.cpp 2007-06-18 18:13:06 -05:00 +++ 1.12/storage/falcon/BigInt.cpp 2007-06-18 21:02:12 -05:00 @@ -19,6 +19,7 @@ #include #include +#include #include "Engine.h" #include "BigInt.h" #include "Value.h" @@ -584,14 +585,14 @@ // Step D1 s = nlz(v[n-1]) - MPBASE; // 0 <= s <= MPBASE. - vn = (uint32 *)_malloca(4*n); + vn = (uint32 *)malloc(4*n); for (i = n - 1; i > 0; i--) vn[i] = (v[i] << s) | (v[i-1] >> (MPBASE-s)); vn[0] = v[0] << s; - un = (uint32 *)_malloca(4*(m+1)); + un = (uint32 *)malloc(4*(m+1)); un[m] = u[m-1] >> (MPBASE-s); for (i = m - 1; i > 0; i--) @@ -682,8 +683,8 @@ quotient->normalize(); remainder->normalize(); - _freea(un); - _freea(vn); + free(un); + free(vn); return(0); }