]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
use wxCHECK instead of wxASSERT in CanonicalizePluginName() to avoid crashing in...
[wxWidgets.git] / src / common / variant.cpp
index 58e7e327e72f4dad26bc1a8c0291dd337c5f06c7..2c540d3f3c12d9d9194e051c46f72683861c2331 100644 (file)
@@ -470,7 +470,7 @@ bool wxVariantDataReal::Write(wxSTD ostream& str) const
 
 bool wxVariantDataReal::Write(wxString& str) const
 {
-    str.Printf(wxT("%.4f"), m_value);
+    str.Printf(wxT("%.14g"), m_value);
     return true;
 }
 
@@ -706,7 +706,7 @@ bool wxVariantDataChar::Read(wxInputStream& str)
 
 bool wxVariantDataChar::Read(wxString& str)
 {
-    m_value = str.ToAscii()[0u];
+    m_value = str.ToAscii()[size_t(0)];
     return true;
 }