mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -323,8 +323,13 @@ static double __evaluate_json_number(const char *integer,
|
||||
{
|
||||
if (exp > 0)
|
||||
num *= pow(10, exp);
|
||||
else
|
||||
else if (exp >= -308)
|
||||
num /= pow(10, -exp);
|
||||
else
|
||||
{
|
||||
num /= pow(10, -exp - 308);
|
||||
num /= 1.0e308;
|
||||
}
|
||||
}
|
||||
|
||||
return sign ? -num : num;
|
||||
|
||||
Reference in New Issue
Block a user