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: