summaryrefslogtreecommitdiff
path: root/hangul/hangulinputcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'hangul/hangulinputcontext.c')
-rw-r--r--hangul/hangulinputcontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c
index 04b85d0..8621065 100644
--- a/hangul/hangulinputcontext.c
+++ b/hangul/hangulinputcontext.c
@@ -388,7 +388,7 @@ void
hangul_keyboard_set_value(HangulKeyboard *keyboard, int key, ucschar value)
{
if (keyboard != NULL) {
- if (key >= 0 && key < N_ELEMENTS(keyboard->table)) {
+ if (key >= 0 && key < HANGUL_KEYBOARD_TABLE_SIZE) {
ucschar* table = (ucschar*)keyboard->table;
table[key] = value;
}