summaryrefslogtreecommitdiff
path: root/tools_common.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2015-07-07 14:22:07 -0700
committerYaowu Xu <yaowu@google.com>2015-07-08 15:09:20 -0700
commitc369daf3ea163d0e1a72e43315d0023b93e40c4e (patch)
tree685d591f69dba5cfd2a4dbffb8e98eab38caeaf8 /tools_common.c
parent340d82efb9694e379a429a5713b380ca8739182c (diff)
downloadlibvpx-c369daf3ea163d0e1a72e43315d0023b93e40c4e.tar
libvpx-c369daf3ea163d0e1a72e43315d0023b93e40c4e.tar.gz
libvpx-c369daf3ea163d0e1a72e43315d0023b93e40c4e.tar.bz2
libvpx-c369daf3ea163d0e1a72e43315d0023b93e40c4e.zip
Clean out more MSVC warnings
Change-Id: I1bab0c104df2ec4825d050cd516e26ab635a7b3e
Diffstat (limited to 'tools_common.c')
-rw-r--r--tools_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools_common.c b/tools_common.c
index 901734e0f..8d356af3f 100644
--- a/tools_common.c
+++ b/tools_common.c
@@ -392,7 +392,7 @@ void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src) {
(uint16_t *)(src->planes[plane] + y * src->stride[plane]);
uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane];
for (x = 0; x < w; x++) {
- *p_dst++ = *p_src++;
+ *p_dst++ = (uint8_t)(*p_src++);
}
}
}