diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-06 17:55:16 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-08 17:11:45 +0200 |
commit | 06749bd66bb3e689bc96be1a3739747912ee0020 (patch) | |
tree | df26e6897c54367f176d3bdeff757896c090a9d5 /client/application.cpp | |
parent | 2cd07dd8f3dd9bf34b1725bb015aecefc93b3454 (diff) |
mingw32 build: fix signed/unsigned warnings as errors
Diffstat (limited to 'client/application.cpp')
-rw-r--r-- | client/application.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/application.cpp b/client/application.cpp index a484bbc..3f1ae71 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -1233,7 +1233,7 @@ ModifierKey modifier_keys[] = { void Application::sync_keyboard_modifiers() { uint32_t modifiers = Platform::get_keyboard_modifiers(); - for (int i = 0; i < sizeof(modifier_keys) / sizeof(modifier_keys[0]); i++) { + for (size_t i = 0; i < sizeof(modifier_keys) / sizeof(modifier_keys[0]); i++) { if (modifiers & modifier_keys[i].modifier) { on_key_down(modifier_keys[i].key); } else { @@ -2012,7 +2012,7 @@ bool Application::set_host_cert_subject(const char* subject, const char* arg0) while (true) { if ((iter == subject_str.end()) || (*iter == ',')) { RedPeer::HostAuthOptions::CertFieldValuePair entry_pair; - int value_pos = entry.find_first_of('='); + size_t value_pos = entry.find_first_of('='); if ((value_pos == std::string::npos) || (value_pos == (entry.length() - 1))) { Platform::term_printf("%s: host_subject bad format: assignment for %s is missing\n", arg0, entry.c_str()); |