List:Commits« Previous MessageNext Message »
From:Alexey Kopytov Date:May 28 2007 7:43pm
Subject:bk commit into 5.0 tree (kaa:1.2503) BUG#28121
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kaa. When kaa 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-05-28 21:43:31+04:00, kaa@stripped +1 -0
  Don't use log_01[] in my_strtod() to avoid loss of precision.
  
  This is for bug #28121.

  strings/strtod.c@stripped, 2007-05-28 21:43:27+04:00, kaa@stripped +2 -2
    Don't use log_01[] in my_strtod() to avoid loss of precision.

# 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:	kaa
# Host:	polly.local
# Root:	/home/kaa/src/maint/mysql-5.0-maint

--- 1.28/strings/strtod.c	2007-05-28 15:33:17 +04:00
+++ 1.29/strings/strtod.c	2007-05-28 21:43:27 +04:00
@@ -244,8 +244,8 @@ double my_strtod(const char *str, char *
     else
       step= array_elements(log_10) - 1;
     for (; exponent > step; exponent-= step)
-      result*= neg_exp ? log_01[step] : log_10[step];
-    result*= neg_exp ? log_01[exponent] : log_10[exponent];
+      result= neg_exp ? result / log_10[step] : result * log_10[step];
+    result= neg_exp ? result / log_10[exponent] : result * log_10[exponent];
   }
 
 done:
Thread
bk commit into 5.0 tree (kaa:1.2503) BUG#28121Alexey Kopytov28 May