Skip to content

Commit

Permalink
Use 9999 instead of -1 because CGKeyCode is an unsigned int.
Browse files Browse the repository at this point in the history
Warning introduced in #106.
  • Loading branch information
octalmage committed Dec 29, 2015
1 parent 288a35b commit 64e0ecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/keycode.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C"
#include <ApplicationServices/ApplicationServices.h>

enum _MMKeyCode {
K_NOT_A_KEY = -1,
K_NOT_A_KEY = 9999,
K_BACKSPACE = kVK_Delete,
K_DELETE = kVK_ForwardDelete,
K_RETURN = kVK_Return,
Expand Down Expand Up @@ -77,7 +77,7 @@ typedef CGKeyCode MMKeyCode;
#include <X11/XF86keysym.h>

enum _MMKeyCode {
K_NOT_A_KEY = -1,
K_NOT_A_KEY = 9999,
K_BACKSPACE = XK_BackSpace,
K_DELETE = XK_Delete,
K_RETURN = XK_Return,
Expand Down Expand Up @@ -136,7 +136,7 @@ typedef KeySym MMKeyCode;
#elif defined(IS_WINDOWS)

enum _MMKeyCode {
K_NOT_A_KEY = -1,
K_NOT_A_KEY = 9999,
K_BACKSPACE = VK_BACK,
K_DELETE = VK_DELETE,
K_RETURN = VK_RETURN,
Expand Down

0 comments on commit 64e0ecf

Please sign in to comment.