summaryrefslogtreecommitdiffhomepage
path: root/src/cdump.c
diff options
context:
space:
mode:
authorMax Anselm <[email protected]>2012-07-29 19:45:27 -0400
committerMax Anselm <[email protected]>2012-07-29 19:48:48 -0400
commit5a4beeed2d0c229a3a558650f03c8390da2d556c (patch)
tree545bffc9810de3e29bd94625aa48aa748d4c1dce /src/cdump.c
parentee899778c4f6cb0d201e50996e73639eabf98704 (diff)
downloadmruby-5a4beeed2d0c229a3a558650f03c8390da2d556c.tar.gz
mruby-5a4beeed2d0c229a3a558650f03c8390da2d556c.zip
Make all(?) void casts explicit for C++
Diffstat (limited to 'src/cdump.c')
-rw-r--r--src/cdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cdump.c b/src/cdump.c
index a4a2ac5e1..32982e6fe 100644
--- a/src/cdump.c
+++ b/src/cdump.c
@@ -107,7 +107,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
return -1;
buf_len = MRB_CDUMP_LINE_LEN;
- if ((buf = mrb_malloc(mrb, buf_len)) == 0 ) {
+ if ((buf = (char *)mrb_malloc(mrb, buf_len)) == 0 ) {
return MRB_CDUMP_GENERAL_FAILURE;
}
@@ -144,7 +144,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
str_len = str_format_len(irep->pool[n]) + 1;
if ( str_len > buf_len ) {
buf_len = str_len;
- if ((buf = mrb_realloc(mrb, buf, buf_len)) == 0 ) {
+ if ((buf = (char *)mrb_realloc(mrb, buf, buf_len)) == 0 ) {
return MRB_CDUMP_GENERAL_FAILURE;
}
}