Commit 56f0646e authored by Daniel Veillard's avatar Daniel Veillard

- xpath.c: patch to xmlXPathFormatNumber for the optimizer on

  Tru64 from Thomas Leitner
Daniel
parent c5d64345
Sun Jun 24 23:31:56 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: patch to xmlXPathFormatNumber for the optimizer on
Tru64 from Thomas Leitner
Sun Jun 24 14:05:54 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* AUTHORS: added William and Bjorn
......
......@@ -1014,7 +1014,10 @@ xmlXPathFormatNumber(double number, char buffer[], int buffersize)
}
else {
/* Use regular notation */
integer_place = 1 + (int)log10(absolute_value);
if (absolute_value > 0.0)
integer_place = 1 + (int)log10(absolute_value);
else
integer_place = 1 - HUGE_VAL;
fraction_place = (integer_place > 0)
? DBL_DIG - integer_place
: DBL_DIG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment