Skip to content

Commit

Permalink
Casted atof to float
Browse files Browse the repository at this point in the history
  • Loading branch information
arves100 authored and baylej committed Nov 20, 2018
1 parent 447ac02 commit 7105f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmx_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7105f0c

Please sign in to comment.