Backed out changeset 74459407359a (bug 917593) for Windows debug checktest asserts.

This commit is contained in:
Ryan VanderMeulen 2013-09-24 16:20:15 -04:00
parent 160a20817c
commit 38b895f04b
2 changed files with 2 additions and 7 deletions

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));
}

View File

@ -396,10 +396,5 @@ main()
TestBulkInPlaceNoSwap(uint64_values);
TestBulkInPlaceNoSwap(int64_values);
// Make sure we don't incorrectly cry overlap for zero-length buffers.
uint64_t scratch = 0xdeadbeef;
NativeEndian::copyAndSwapFromLittleEndian(&scratch, &scratch, 0);
MOZ_ASSERT(scratch == 0xdeadbeef);
return 0;
}