1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +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

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