1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mrkn 2011-06-17 17:38:18 +00:00
parent f107d1e706
commit b7a693da8e
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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);

View file

@ -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);