mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716544 - Fix comparison between signed and unsigned integer expressions in nsStringAPI.h. r=dbaron
This commit is contained in:
parent
aa58de1df6
commit
f23ba363ff
@ -1322,7 +1322,7 @@ Substring( const nsAString& str, PRUint32 startPos, PRUint32 length )
|
||||
inline const nsDependentSubstring
|
||||
Substring( const PRUnichar* start, const PRUnichar* end )
|
||||
{
|
||||
NS_ABORT_IF_FALSE(PRUint32(end - start) == end - start, "string too long");
|
||||
NS_ABORT_IF_FALSE(PRUint32(end - start) == uintptr_t(end - start), "string too long");
|
||||
return nsDependentSubstring(start, PRUint32(end - start));
|
||||
}
|
||||
|
||||
@ -1361,7 +1361,7 @@ inline
|
||||
const nsDependentCSubstring
|
||||
Substring( const char* start, const char* end )
|
||||
{
|
||||
NS_ABORT_IF_FALSE(PRUint32(end - start) == end - start, "string too long");
|
||||
NS_ABORT_IF_FALSE(PRUint32(end - start) == uintptr_t(end - start), "string too long");
|
||||
return nsDependentCSubstring(start, PRUint32(end - start));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user