diff options
author | Johann <johannkoenig@google.com> | 2018-04-04 14:57:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2018-04-13 22:52:52 +0000 |
commit | b8696fde84ad87610269f99b2215e558a36890cf (patch) | |
tree | bff3c54b1c4262e3b093bb9d705666a9062fb9c6 /source/convert_from_argb.cc | |
parent | 7e5e12757b93167d993d8e34031f500216f09c5f (diff) | |
download | libyuv-b8696fde84ad87610269f99b2215e558a36890cf.tar.gz |
add const to casts
When casting a const value, ensure the cast is const as well.
BUG=webm:1509
Change-Id: I5b597fdcc148d111e9824bc7cf918fc5f24e970f
Reviewed-on: https://chromium-review.googlesource.com/996553
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert_from_argb.cc')
-rw-r--r-- | source/convert_from_argb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/convert_from_argb.cc b/source/convert_from_argb.cc index 2a36d6d8..c8d91252 100644 --- a/source/convert_from_argb.cc +++ b/source/convert_from_argb.cc @@ -1050,8 +1050,8 @@ int ARGBToRGB565Dither(const uint8_t* src_argb, for (y = 0; y < height; ++y) { ARGBToRGB565DitherRow(src_argb, dst_rgb565, - *(uint32_t*)(dither4x4 + ((y & 3) << 2)), // NOLINT - width); /* NOLINT */ + *(const uint32_t*)(dither4x4 + ((y & 3) << 2)), + width); src_argb += src_stride_argb; dst_rgb565 += dst_stride_rgb565; } |