Fix incorrect sizeof expression 79/40279/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 8 Jan 2015 06:32:44 +0000 (15:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 2 Jun 2015 00:29:01 +0000 (09:29 +0900)
sizeof of pointer variable returns 4 bytes.

Change-Id: Iaf4444ceabff8ccc9a1f2f397e13bbf01b5feb04

hangul/hangulinputcontext.c

index 04b85d050947152fc4a0c8477ee3a717d6a53acc..8621065e12e71b1ab2ebefabdf386e752727683d 100644 (file)
@@ -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;
        }