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:
@ -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
|
||||
|
5
xpath.c
5
xpath.c
@ -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;
|
||||
|
Reference in New Issue
Block a user