summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 17:38:18 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 17:38:18 +0000
commitb7a693da8e0d0e514d630d45cb1644d91bd3ba07 (patch)
treef17c3676d04b61891149676a3eeb547c978c4b52 /ext/bigdecimal
parentf107d1e7066fdfa6360bf4aa9986f519dcd3f175 (diff)
* ext/bigdecimal/bigdecimal.c (VpNewRbClass): fix type of the 2nd
argument. * ext/bigdecimal/bigdecimal.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
-rw-r--r--ext/bigdecimal/bigdecimal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 4fc22b5..9e22dc5 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -487,7 +487,7 @@ GetPositiveInt(VALUE v)
}
VP_EXPORT Real *
-VpNewRbClass(size_t mx, char *str, VALUE klass)
+VpNewRbClass(size_t mx, const char *str, VALUE klass)
{
Real *pv = VpAlloc(mx,str);
pv->obj = TypedData_Wrap_Struct(klass, &BigDecimal_data_type, pv);
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h
index b086c68..d6a3f33 100644
--- a/ext/bigdecimal/bigdecimal.h
+++ b/ext/bigdecimal/bigdecimal.h
@@ -154,7 +154,7 @@ typedef struct {
*/
VP_EXPORT Real *
-VpNewRbClass(size_t mx, char *str, VALUE klass);
+VpNewRbClass(size_t mx, char const *str, VALUE klass);
VP_EXPORT Real *VpCreateRbObject(size_t mx,const char *str);