summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:17:38 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:17:38 (GMT)
commita979eb4548bf8b8d7479ba83e4a2f25f77175f4d (patch)
tree2ab1a2840c323ba983570b63f3ecce71cddfec25 /regcomp.c
parent23b1a3d3fa8ec7d5e6f4d9f89540207682502c66 (diff)
* regcomp.c (onig_memsize): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index b681e66..ef4c086 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5249,7 +5249,7 @@ onig_free(regex_t* reg)
}
size_t
-onig_memsize(regex_t *reg)
+onig_memsize(const regex_t *reg)
{
size_t size = sizeof(regex_t);
if (IS_NOT_NULL(reg->p)) size += reg->alloc;