projects
/
chise
/
ruby.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update.
[chise/ruby.git]
/
ext
/
libchise_c.c
diff --git
a/ext/libchise_c.c
b/ext/libchise_c.c
index
6f81fb4
..
1364381
100755
(executable)
--- a/
ext/libchise_c.c
+++ b/
ext/libchise_c.c
@@
-169,6
+169,7
@@
static VALUE fccs_decode(VALUE obj, VALUE code_point){
RB_CHISE_CCS *rccs;
Data_Get_Struct(obj, RB_CHISE_CCS, rccs);
CHISE_Char_ID cid = chise_ccs_decode(rccs->ccs, NUM2INT(code_point));
+ if (cid == -1) return Qnil;
return INT2NUM(cid);
}