projects
/
platform
/
core
/
uifw
/
libhangul.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5d4d08
)
Fix incorrect sizeof expression
79/40279/1
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Thu, 8 Jan 2015 06:32:44 +0000
(15:32 +0900)
committer
Jihoon 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
patch
|
blob
|
history
diff --git
a/hangul/hangulinputcontext.c
b/hangul/hangulinputcontext.c
index 04b85d050947152fc4a0c8477ee3a717d6a53acc..8621065e12e71b1ab2ebefabdf386e752727683d 100644
(file)
--- 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;
}