Bläddra i källkod

[3.x] Fix sign comparison error in platform/osx/os_osx.mm

Andy Maloney 3 år sedan
förälder
incheckning
7c6564ef7e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      platform/osx/os_osx.mm

+ 1 - 1
platform/osx/os_osx.mm

@@ -1079,7 +1079,7 @@ static int translateKey(unsigned int key) {
 }
 }
 
 
 // Translates a Godot keycode back to a OSX keycode
 // Translates a Godot keycode back to a OSX keycode
-static unsigned int unmapKey(int key) {
+static unsigned int unmapKey(unsigned int key) {
 	for (int i = 0; i <= 126; i++) {
 	for (int i = 0; i <= 126; i++) {
 		if (_osx_to_godot_table[i] == key) {
 		if (_osx_to_godot_table[i] == key) {
 			return i;
 			return i;