diff options
author | rubidium <rubidium@openttd.org> | 2011-11-12 08:10:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-12 08:10:22 +0000 |
commit | bd64bf6372399bad1a92565ae7d3c243658d241f (patch) | |
tree | 7af646337e5ddafe68f0d701711c41ef89d21491 /src/hotkeys.cpp | |
parent | a8d33a4d89f11c45b9690481b08df3c800292005 (diff) | |
download | openttd-bd64bf6372399bad1a92565ae7d3c243658d241f.tar.xz |
(svn r23193) -Codechange: don't cast away const unneededly
Diffstat (limited to 'src/hotkeys.cpp')
-rw-r--r-- | src/hotkeys.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp index 674c10c73..70fe72aea 100644 --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -75,7 +75,7 @@ static uint16 ParseCode(const char *start, const char *end) if (end - start == 1) { if (*start >= 'a' && *start <= 'z') return *start - ('a'-'A'); /* Ignore invalid keycodes */ - if (*(uint8*)start < 128) return *start; + if (*(const uint8 *)start < 128) return *start; } return 0; } |