Merge "introduce WebPMemToUint32 and WebPUint32ToMem for memory access"

This commit is contained in:
Pascal Massimino
2015-12-08 11:32:05 +00:00
committed by Gerrit Code Review
11 changed files with 112 additions and 108 deletions

View File

@ -33,8 +33,8 @@
// Palette reordering for smaller sum of deltas (and for smaller storage).
static int PaletteCompareColorsForQsort(const void* p1, const void* p2) {
const uint32_t a = *(const uint32_t*)p1;
const uint32_t b = *(const uint32_t*)p2;
const uint32_t a = WebPMemToUint32(p1);
const uint32_t b = WebPMemToUint32(p2);
assert(a != b);
return (a < b) ? -1 : 1;
}