From: Holger Schemel Date: Fri, 23 Feb 2024 17:34:09 +0000 (+0100) Subject: replaced glib function calls to g_ascii_strtod() X-Git-Tag: 4.4.0.0-test-1~302 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=sidebyside;h=cea7a60112df6c411e990bf45a6dab0f31de6cc4;p=rocksndiamonds.git replaced glib function calls to g_ascii_strtod() --- diff --git a/src/game_bd/bd_bdcff.c b/src/game_bd/bd_bdcff.c index bc8c8015..20aba8f9 100644 --- a/src/game_bd/bd_bdcff.c +++ b/src/game_bd/bd_bdcff.c @@ -254,7 +254,7 @@ static boolean struct_set_property(gpointer str, const GdStructDescriptor *prop_ break; case GD_TYPE_PROBABILITY: - res = g_ascii_strtod(params[paramindex], NULL); + res = strtod(params[paramindex], NULL); if (errno == 0 && res >= 0 && res <= 1) { /* fill all remaining items in array - may be only one */ @@ -268,7 +268,7 @@ static boolean struct_set_property(gpointer str, const GdStructDescriptor *prop_ break; case GD_TYPE_RATIO: - res = g_ascii_strtod (params[paramindex], NULL); + res = strtod (params[paramindex], NULL); if (errno == 0 && res >= 0 && res <= 1) { for (k = j; k < prop_desc[i].count; k++)