summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 18:24:24 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-02 18:24:24 +0000
commitb4be4c7be315998f8301c21636aa7b4ab8c9e47f (patch)
tree990ba6af39625918343a468b9c632127258f45a5
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
-rw-r--r--ChangeLog4
-rw-r--r--regparse.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e6df24d..e6549cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Jun 3 03:15:46 2012 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (onig_number_of_names): suppress a warning.
+
Sun Jun 3 01:36:52 2012 Koichi Sasada <ko1@atdot.net>
* vm_backtrace.c: change names.
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;
}