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.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.cc')
-rw-r--r-- | source/convert_from.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc index b5587ced..6fa25323 100644 --- a/source/convert_from.cc +++ b/source/convert_from.cc @@ -1154,8 +1154,8 @@ int I420ToRGB565Dither(const uint8_t* src_y, for (y = 0; y < height; ++y) { I422ToARGBRow(src_y, src_u, src_v, row_argb, &kYuvI601Constants, width); ARGBToRGB565DitherRow(row_argb, dst_rgb565, - *(uint32_t*)(dither4x4 + ((y & 3) << 2)), // NOLINT - width); // NOLINT + *(const uint32_t*)(dither4x4 + ((y & 3) << 2)), + width); dst_rgb565 += dst_stride_rgb565; src_y += src_stride_y; if (y & 1) { |