summaryrefslogtreecommitdiff
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
parentf107d1e7066fdfa6360bf4aa9986f519dcd3f175 (diff)
downloadruby-b7a693da8e0d0e514d630d45cb1644d91bd3ba07.tar.gz
* 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
-rw-r--r--ChangeLog7
-rw-r--r--ext/bigdecimal/bigdecimal.c2
-rw-r--r--ext/bigdecimal/bigdecimal.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 09f4763cdb..a61ff61c9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Jun 18 02:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpNewRbClass): fix type of the 2nd
+ argument.
+
+ * ext/bigdecimal/bigdecimal.h: ditto.
+
Sat Jun 18 02:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): move BigMath.exp from
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 4fc22b51ce..9e22dc55e1 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 b086c68c17..d6a3f337c6 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);