summaryrefslogtreecommitdiffhomepage
path: root/src/symbol.c
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2013-07-15 23:00:54 +0900
committerJun Hiroe <[email protected]>2013-07-15 23:17:12 +0900
commit8e42868600e7adcdc5665ff9b0244150296960d6 (patch)
tree152777f53050f0ba0e5e891c0550df22c41e72a5 /src/symbol.c
parent18c167b8b5200aa604a5c665a6dcb3b9ec7f02b4 (diff)
downloadmruby-8e42868600e7adcdc5665ff9b0244150296960d6.tar.gz
mruby-8e42868600e7adcdc5665ff9b0244150296960d6.zip
Repalace int with mrb_bool because a return value is boolean.
Diffstat (limited to 'src/symbol.c')
-rw-r--r--src/symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/symbol.c b/src/symbol.c
index c29f7c6ae..bd8dce7df 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -251,7 +251,7 @@ sym_to_sym(mrb_state *mrb, mrb_value sym)
#endif
#define is_identchar(c) (SIGN_EXTEND_CHAR(c)!=-1&&(ISALNUM(c) || (c) == '_'))
-static int
+static mrb_bool
is_special_global_name(const char* m)
{
switch (*m) {
@@ -274,7 +274,7 @@ is_special_global_name(const char* m)
return !*m;
}
-static int
+static mrb_bool
symname_p(const char *name)
{
const char *m = name;