X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab708d5defa637ac6f284f94acb706d13cd15eb1..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xmlexpat.cpp diff --git a/contrib/src/xml/xmlexpat.cpp b/contrib/src/xml/xmlexpat.cpp index 95443131d3..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[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[pos+8]); + ctx->version = buf.Mid(pos + 9).BeforeFirst(buf[(size_t)pos+8]); } }