1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-14 20:01:04 +03:00

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

Tru64 from Thomas Leitner
Daniel
This commit is contained in:
Daniel Veillard
2001-06-24 21:34:03 +00:00
parent c5d64345cf
commit 56f0646e73
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;