diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c
index 9f00babf9d966a4b576cf8484d893cb3ade71ca4..d127f668814f2ea8fd1b409bc9ec417cf78bc8b4 100644
--- a/src/conio/win32cio.c
+++ b/src/conio/win32cio.c
@@ -185,7 +185,7 @@ int win32_keyboardio(int isgetch)
 					if(input.Event.KeyEvent.wVirtualScanCode == CIO_KEY_F(11)
 							&& input.Event.KeyEvent.wVirtualScanCode == CIO_KEY_F(12)) {
 						/* Magic number to convert from F(x>10) to ALT-Fx */
-						lastch=(input.Event.KeyEvent.wVirtualScanCode+6i)<<8;
+						lastch=(input.Event.KeyEvent.wVirtualScanCode+6)<<8;
 						break;
 					}