Bug 917593 - Don't assert for zero-length strings. r=Waldo

This commit is contained in:
Bobby Holley 2013-09-27 18:34:24 +02:00
parent bef2a582e7
commit 51532e72a4

View File

@ -238,9 +238,9 @@ class EndianUtils
{
DebugOnly<const uint8_t*> byteDestPtr = static_cast<const uint8_t*>(dest);
DebugOnly<const uint8_t*> byteSrcPtr = static_cast<const uint8_t*>(src);
MOZ_ASSERT((byteDestPtr < byteSrcPtr &&
MOZ_ASSERT((byteDestPtr <= byteSrcPtr &&
byteDestPtr + count <= byteSrcPtr) ||
(byteSrcPtr < byteDestPtr &&
(byteSrcPtr <= byteDestPtr &&
byteSrcPtr + count <= byteDestPtr));
}