Skip to content

Commit

Permalink
* ext/bigdecimal/bigdecimal.c (VpNewRbClass): fix type of the 2nd
Browse files Browse the repository at this point in the history
  argument.
* ext/bigdecimal/bigdecimal.h: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mrkn committed Jun 17, 2011
1 parent f107d1e commit b7a693d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.h
Expand Up @@ -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);

Expand Down

0 comments on commit b7a693d

Please sign in to comment.