can't handle double type parameters
Bug #1388312 reported by
fang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jabberd |
New
|
Undecided
|
Unassigned |
Bug Description
When I add the double type into the project, the variable value is out of order.
For example,
I use the atof function, input is "39.931152", output is "39.931152".
A little change for atof as below:
double j_atof(const char *a, double def)
{
if(a == NULL)
return def;
else
return atof(a);
}
the same input, but return value is "0.000000" or other value in different machine. Seems it can't get the correct value from the registers.
To post a comment you must log in.