From cea7a60112df6c411e990bf45a6dab0f31de6cc4 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 23 Feb 2024 18:34:09 +0100 Subject: [PATCH] replaced glib function calls to g_ascii_strtod() --- src/game_bd/bd_bdcff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) -- 2.34.1