Skip to content

Commit

Permalink
fix windows compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 19, 2022
1 parent bbb4425 commit 10330ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,9 +2474,9 @@ int mcx_loadjson(cJSON* root, Config* cfg) {
if (strcmp(subitem->child->next->next->next->valuestring, "_NaN_") == 0) {
cfg->srcdir.w = NAN;
} else if (strcmp(subitem->child->next->next->next->valuestring, "_Inf_") == 0) {
cfg->srcdir.w = (1.f / 0.f);
cfg->srcdir.w = INFINITY;
} else if (strcmp(subitem->child->next->next->next->valuestring, "-_Inf_") == 0) {
cfg->srcdir.w = -(1.f / 0.f);
cfg->srcdir.w = -INFINITY;
}
} else {
cfg->srcdir.w = subitem->child->next->next->next->valuedouble;
Expand Down

0 comments on commit 10330ef

Please sign in to comment.