use explicit casts
This commit is contained in:
		
							parent
							
								
									86617eccb1
								
							
						
					
					
						commit
						96f834fb81
					
				| @ -279,13 +279,13 @@ ImportNode XMLParser::ReadXMLNode() | |||||||
|     xmlChar *attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"lat"); |     xmlChar *attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"lat"); | ||||||
|     if (attribute != NULL) |     if (attribute != NULL) | ||||||
|     { |     { | ||||||
|         node.lat = COORDINATE_PRECISION * StringToDouble((const char *)attribute); |         node.lat = static_cast<int>(COORDINATE_PRECISION * StringToDouble((const char *)attribute)); | ||||||
|         xmlFree(attribute); |         xmlFree(attribute); | ||||||
|     } |     } | ||||||
|     attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"lon"); |     attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"lon"); | ||||||
|     if (attribute != NULL) |     if (attribute != NULL) | ||||||
|     { |     { | ||||||
|         node.lon = COORDINATE_PRECISION * StringToDouble((const char *)attribute); |         node.lon = static_cast<int>(COORDINATE_PRECISION * StringToDouble((const char *)attribute)); | ||||||
|         xmlFree(attribute); |         xmlFree(attribute); | ||||||
|     } |     } | ||||||
|     attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"id"); |     attribute = xmlTextReaderGetAttribute(inputReader, (const xmlChar *)"id"); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user