Fix build for GCC. Cast enum to int when using with %d format specifier

TBR: robertphillips@google.com

No-Tree-Checks: true
No-Try: true

Change-Id: Ib283021da485ebc2d271bd9673f1a7f739065189
Bug: skia:8962
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/213240
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2019-05-10 15:28:12 -04:00 committed by Skia Commit-Bot
parent ab32f65653
commit 303bacbc0f

View File

@ -34,7 +34,7 @@ public:
string.appendf(
"bufferID:: %d offset: %zu, color type: %d\n"
"srcRect: [ L: %d, T: %d, R: %d, B: %d ]\n",
fDstBuffer->uniqueID().asUInt(), fDstOffset, fDstColorType, fSrcRect.fLeft,
fDstBuffer->uniqueID().asUInt(), fDstOffset, (int)fDstColorType, fSrcRect.fLeft,
fSrcRect.fTop, fSrcRect.fRight, fSrcRect.fBottom);
return string;
}