]> code.delx.au - gnu-emacs/commitdiff
(w32_initialize): Add necessary casts to last change.
authorJason Rumney <jasonr@gnu.org>
Sun, 21 Jun 2009 13:16:21 +0000 (13:16 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 21 Jun 2009 13:16:21 +0000 (13:16 +0000)
src/w32term.c

index b24da6cad5eb90f85b1bb9e9d070a964d1ac9b07..f96a60d777f856f36fdaee41f57773059c713254 100644 (file)
@@ -6361,8 +6361,8 @@ w32_initialize ()
   Fset_input_mode (Qnil, Qnil, make_number (2), Qnil);
 
   {
-    HKL input_locale_id = GetKeyboardLayout (0);
-    keyboard_codepage = codepage_for_locale (input_locale_id & 0xffff);
+    DWORD input_locale_id = (DWORD) GetKeyboardLayout (0);
+    keyboard_codepage = codepage_for_locale ((LCID) (input_locale_id & 0xffff));
   }
 
   /* Create the window thread - it will terminate itself when the app