summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 01:51:05 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 01:51:05 (GMT)
commit541e1aff202013c1de8c4e462e070bbe40b283c4 (patch)
tree7604d3b425c48bd760c94548cda9a7586cbac83c /regparse.c
parentc509bec71deb3a757a090ab9dc1a6d64f38c72ff (diff)
* regparse.c: fix warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regparse.c b/regparse.c
index bc13434..065e5b2 100644
--- a/regparse.c
+++ b/regparse.c
@@ -1738,7 +1738,7 @@ add_code_range_to_buf0(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePo
int checkdup)
{
int r, inc_n, pos;
- int low, high, bound, x;
+ OnigCodePoint low, high, bound, x;
OnigCodePoint n, *data;
BBuf* bbuf;
@@ -3239,7 +3239,6 @@ fetch_named_backref_token(OnigCodePoint c, OnigToken* tok, UChar** src,
UChar* end, ScanEnv* env)
{
int r, num;
- OnigEncoding enc = env->enc;
const OnigSyntaxType* syn = env->syntax;
UChar* prev;
UChar* p = *src;