summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 18:24:24 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 18:24:24 (GMT)
commitb4be4c7be315998f8301c21636aa7b4ab8c9e47f (patch)
tree990ba6af39625918343a468b9c632127258f45a5 /regparse.c
parentf6f769d26d8ba3fa715cbb0e3717ff50207befaa (diff)
* regparse.c (onig_number_of_names): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regparse.c b/regparse.c
index 39de235..a207de3 100644
--- a/regparse.c
+++ b/regparse.c
@@ -589,7 +589,7 @@ onig_number_of_names(regex_t* reg)
NameTable* t = (NameTable* )reg->name_table;
if (IS_NOT_NULL(t))
- return t->num_entries;
+ return (int)t->num_entries;
else
return 0;
}