]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valtext.cpp
1. more warnings fixes in gtk/region.cpp and common/tbarsmpl.cpp
[wxWidgets.git] / src / common / valtext.cpp
index 6e65f76bef957e5e7e4764cd9864c1ae9db3e933..27e3d04cd62dadc610cfe6e20eb6ae9919e81cf3 100644 (file)
@@ -269,7 +269,7 @@ void wxTextValidator::OnChar(wxKeyEvent& event)
 
     if ( m_validatorWindow )
     {
-        long keyCode = event.KeyCode();
+        int keyCode = (int)event.KeyCode();
 
         // we don't filter special keys and Delete
         if (