Fix a warning about comparison of integers of different signs

Bug: webrtc:9583
Change-Id: I94df0efa0a0fd5666a42dbd6997ac1b00b3844bd
Reviewed-on: https://webrtc-review.googlesource.com/92040
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24171}
This commit is contained in:
Oleh Prypin
2018-08-02 09:58:22 +02:00
committed by Commit Bot
parent f8d81d33ed
commit 31f1596c7c

View File

@ -258,7 +258,7 @@ void MainWnd::OnPaint() {
// Set the map mode so that the ratio will be maintained for us.
HDC all_dc[] = {ps.hdc, dc_mem};
for (int i = 0; i < arraysize(all_dc); ++i) {
for (size_t i = 0; i < arraysize(all_dc); ++i) {
SetMapMode(all_dc[i], MM_ISOTROPIC);
SetWindowExtEx(all_dc[i], width, height, NULL);
SetViewportExtEx(all_dc[i], rc.right, rc.bottom, NULL);