]> git.saurik.com Git - wxWidgets.git/commitdiff
No real changes, just add a cast to fix a warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Dec 2010 18:43:57 +0000 (18:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Dec 2010 18:43:57 +0000 (18:43 +0000)
Fix warning about implicitly converting -1 to CGKeyCode when building wxOSX
with 10.4 SDK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/uiaction_osx.cpp

index 6c49d069d2ce1557b84d41a6596f0cfd56688377..d5d9bc112caf496cc087633eebc020ffb9c42201 100644 (file)
@@ -298,7 +298,7 @@ CGKeyCode wxCharCodeWXToOSX(wxKeyCode code)
 
         default:
             wxLogDebug( "Unrecognised keycode %d", code );
-            keycode = -1;
+            keycode = static_cast<CGKeyCode>(-1);
     }
 
     return keycode;