From be413f193939ad9b326d00f459c2c3e8c33ccfff Mon Sep 17 00:00:00 2001 From: Pavel A Date: Sat, 28 Mar 2015 23:30:58 +0300 Subject: [PATCH] Fix warning in GUIapp (no functional) --- windows-vs/VS_GUI_demo/GUIapp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-vs/VS_GUI_demo/GUIapp.cpp b/windows-vs/VS_GUI_demo/GUIapp.cpp index 5c29975..6b1b1b0 100644 --- a/windows-vs/VS_GUI_demo/GUIapp.cpp +++ b/windows-vs/VS_GUI_demo/GUIapp.cpp @@ -93,7 +93,7 @@ void Form1::buttonOpen_Click(System::Object^ sender, System::EventArgs^ e) if ( r != 0 ) { setMsg("Error reading device state", true); } else { - for (int i = 0; i < MaxRelaysNum; i++ ) { + for (i = 0; i < MaxRelaysNum; i++ ) { System::Windows::Forms::TextBox^ t; t = static_cast(aIndicators->GetValue(i)); Drawing::Color c = st & (1 << i) ? GREEN : RED; -- 2.25.1