From 31f1596c7cbc92f648599d5cba4d8e9f02d43219 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Thu, 2 Aug 2018 09:58:22 +0200 Subject: [PATCH] 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 Commit-Queue: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#24171} --- examples/peerconnection/client/main_wnd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/peerconnection/client/main_wnd.cc b/examples/peerconnection/client/main_wnd.cc index 4d1c57e5de6..3ad248843a8 100644 --- a/examples/peerconnection/client/main_wnd.cc +++ b/examples/peerconnection/client/main_wnd.cc @@ -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);