Index: xfa/fgas/xml/fgas_sax.cpp |
diff --git a/xfa/fgas/xml/fgas_sax.cpp b/xfa/fgas/xml/fgas_sax.cpp |
index b97aeb0a7cfe59430c359fa64f146174d3131421..1128e1184f90faee49b44ede02e392db6a414722 100644 |
--- a/xfa/fgas/xml/fgas_sax.cpp |
+++ b/xfa/fgas/xml/fgas_sax.cpp |
@@ -32,7 +32,7 @@ FX_BOOL CFX_SAXFile::StartFile(IFX_FileRead* pFile, |
if (dwStart >= dwSize) { |
return FALSE; |
} |
- if (dwLen == -1 || dwStart + dwLen > dwSize) { |
+ if (dwLen == static_cast<uint32_t>(-1) || dwStart + dwLen > dwSize) { |
dwLen = dwSize - dwStart; |
} |
if (dwLen == 0) { |