~knielsen/maria/mysql-5.1.50-libmysqld.so

« back to all changes in this revision

Viewing changes to strings/decimal.c

  • Committer: Georgi Kodinov
  • Date: 2010-07-21 15:54:11 UTC
  • mfrom: (3457.1.42 merge-5.1-bugteam)
  • Revision ID: georgi.kodinov@oracle.com-20100721155411-8bpmhkpnazzsbfws
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
994
994
  char buff[400], *end;
995
995
  int length, res;
996
996
  DBUG_ENTER("double2decimal");
997
 
  length= my_sprintf(buff, (buff, "%.16G", from));
 
997
  length= sprintf(buff, "%.16G", from);
998
998
  DBUG_PRINT("info",("from: %g  from_as_str: %s", from, buff));
999
999
  end= buff+length;
1000
1000
  res= string2decimal(buff, to, &end);
1934
1934
int decimal_intg(decimal_t *from)
1935
1935
{
1936
1936
  int res;
1937
 
  dec1 *tmp_res;
1938
 
  tmp_res= remove_leading_zeroes(from, &res);
 
1937
  remove_leading_zeroes(from, &res);
1939
1938
  return res;
1940
1939
}
1941
1940