diff options
author | 2015-11-19 09:53:21 -0800 | |
---|---|---|
committer | 2015-11-19 09:53:22 -0800 | |
commit | 1d02a60fec20018c987ef827abbd5e77562c3a67 (patch) | |
tree | f9bbf35575862d35424d5a7620a2197fd6c95c9b | |
parent | e55c312929fe5a4e65158d848a4b190e8fbf8c7c (diff) |
Remove unsigned < signed comparison.
This triggers -Wsign-compare on some builds.
Not sure why none of those builds have -Werror set.
BUG=skia:4561
Review URL: https://codereview.chromium.org/1464543002
-rw-r--r-- | include/gpu/GrTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 8a8e08c949..cf3773c89e 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -180,7 +180,7 @@ static const int kMaskFormatCount = kLast_GrMaskFormat + 1; * Return the number of bytes-per-pixel for the specified mask format. */ static inline int GrMaskFormatBytesPerPixel(GrMaskFormat format) { - SkASSERT((unsigned)format < kMaskFormatCount); + SkASSERT(format < kMaskFormatCount); // kA8 (0) -> 1 // kA565 (1) -> 2 // kARGB (2) -> 4 |