From 39cc4cf19631dcebf39f100d6b08c26035bcb393 Mon Sep 17 00:00:00 2001 From: Arves100 Date: Sun, 11 Nov 2018 17:07:02 +0100 Subject: [PATCH] Casted atof to float --- src/tmx_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmx_xml.c b/src/tmx_xml.c index a6bff1f..7bc2725 100755 --- a/src/tmx_xml.c +++ b/src/tmx_xml.c @@ -61,7 +61,7 @@ static int parse_property(xmlTextReaderPtr reader, tmx_property *prop) { tmx_free_func(value); break; case PT_FLOAT: - prop->value.decimal = atof(value); + prop->value.decimal = (float)atof(value); tmx_free_func(value); break; case PT_BOOL: