################################\r
# set lib version here\r
\r
-set(GENERIC_LIB_VERSION "4.0.0")\r
+set(GENERIC_LIB_VERSION "4.0.1")\r
set(GENERIC_LIB_SOVERSION "4")\r
\r
\r
# could be handy for archiving the generated documentation or if some version\r
# control system is used.\r
\r
-PROJECT_NUMBER = 4.0.0\r
+PROJECT_NUMBER = 4.0.1\r
\r
# Using the PROJECT_BRIEF tag one can provide an optional one line description\r
# for a project that appears at the top of each page and should give viewer a\r
\r
void XMLUtil::ToStr(int64_t v, char* buffer, int bufferSize)\r
{\r
- TIXML_SNPRINTF(buffer, bufferSize, "%lld", v);\r
+ // horrible syntax trick to make the compiler happy about %lld\r
+ TIXML_SNPRINTF(buffer, bufferSize, "%lld", (long long)v);\r
}\r
\r
\r
\r
bool XMLUtil::ToInt64(const char* str, int64_t* value)\r
{\r
- if (TIXML_SSCANF(str, "%lld", value) == 1) {\r
+ long long v = 0; // horrible syntax trick to make the compiler happy about %lld\r
+ if (TIXML_SSCANF(str, "%lld", &v) == 1) {\r
+ *value = (int64_t)v;\r
return true;\r
}\r
return false;\r
*/\r
static const int TIXML2_MAJOR_VERSION = 4;\r
static const int TIXML2_MINOR_VERSION = 0;\r
-static const int TIXML2_PATCH_VERSION = 0;\r
+static const int TIXML2_PATCH_VERSION = 1;\r
\r
namespace tinyxml2\r
{\r
XMLTest( "Programmatic DOM", 2, doc->FirstChildElement()->LastChildElement( "sub" )->IntAttribute( "attrib" ) );\r
XMLTest( "Programmatic DOM", "& Text!",\r
doc->FirstChildElement()->LastChildElement( "sub" )->FirstChild()->ToText()->Value() );\r
- XMLTest("User data", 2, (int)comment->GetUserData());\r
+ XMLTest("User data", (void*)2 == comment->GetUserData(), true, false);\r
\r
// And now deletion:\r
element->DeleteChild( sub[2] );\r