Add missing "const" to SkMD5::finish::PADDING
This moves it from .data to .rodata ELF section (more efficient) Bug: chromium:747064 Change-Id: I4d12ce6622bd9d1264d46e48855a43f00671bee4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268200 Auto-Submit: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
1b80c35792
commit
133177bd12
@ -75,7 +75,7 @@ SkMD5::Digest SkMD5::finish() {
|
||||
// Pad out to 56 mod 64.
|
||||
unsigned int bufferIndex = (unsigned int)(this->byteCount & 0x3F);
|
||||
unsigned int paddingLength = (bufferIndex < 56) ? (56 - bufferIndex) : (120 - bufferIndex);
|
||||
static uint8_t PADDING[64] = {
|
||||
static const uint8_t PADDING[64] = {
|
||||
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user