mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
Backed out changeset 74459407359a (bug 917593) for Windows debug checktest asserts.
This commit is contained in:
parent
7bd3c0ae36
commit
e9cbf86254
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user