X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8513c19cbaafe902fd934f747d40e15f6a18898b..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xmlexpat.cpp?ds=inline diff --git a/contrib/src/xml/xmlexpat.cpp b/contrib/src/xml/xmlexpat.cpp index f16fcfaa66..358d45a05b 100644 --- a/contrib/src/xml/xmlexpat.cpp +++ b/contrib/src/xml/xmlexpat.cpp @@ -148,10 +148,10 @@ static void DefaultHnd(void *userData, const char *s, int len) int pos; pos = buf.Find(wxT("encoding=")); if (pos != wxNOT_FOUND) - ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf.c_str()[pos+9]); + ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf[(size_t)pos+9]); pos = buf.Find(wxT("version=")); if (pos != wxNOT_FOUND) - ctx->version = buf.Mid(pos + 9).BeforeFirst(buf.c_str()[pos+8]); + ctx->version = buf.Mid(pos + 9).BeforeFirst(buf[(size_t)pos+8]); } }