Update of /cvsroot/simspark/simspark/spark/utility/tinyxml
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3329
Modified Files:
Tag: WIN32
xmlfunctions.cpp
Log Message:
- fix cast
Index: xmlfunctions.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/utility/tinyxml/xmlfunctions.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** xmlfunctions.cpp 18 Feb 2006 19:33:59 -0000 1.1
--- xmlfunctions.cpp 13 Feb 2007 19:42:33 -0000 1.1.2.1
***************
*** 70,74 ****
double d;
bool ok = GetXMLAttribute(element, attrName, d);
! f = d;
return ok;
}
--- 70,74 ----
double d;
bool ok = GetXMLAttribute(element, attrName, d);
! f = static_cast<float>(d);
return ok;
}
|