summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-08 16:04:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-08 16:04:36 +0000
commitc19ebe04e6a7842b9e6986c3616be409c9491b35 (patch)
tree337e117bf3bdf1a6060224959d9a29d1d8a84591 /marshal.c
parent4fe6fa884957545c0cecaee8ac4ebaa636904a43 (diff)
downloadruby-c19ebe04e6a7842b9e6986c3616be409c9491b35.tar.gz
abolish warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/marshal.c b/marshal.c
index 5f97e69d64..539165ecfa 100644
--- a/marshal.c
+++ b/marshal.c
@@ -503,7 +503,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
rb_alloc_func_t allocator = rb_get_alloc_func(RBASIC(obj)->klass);
if (st_lookup(compat_allocator_tbl,
(st_data_t)allocator,
- (st_data_t*)&compat)) {
+ (st_data_t*)(void*)&compat)) {
VALUE real_obj = obj;
obj = compat->dumper(real_obj);
st_insert(arg->compat_tbl, (st_data_t)obj, (st_data_t)real_obj);
@@ -978,7 +978,7 @@ r_leave(VALUE v, struct load_arg *arg)
if (st_lookup(arg->compat_tbl, v, &real_obj)) {
rb_alloc_func_t allocator = rb_get_alloc_func(CLASS_OF(real_obj));
st_data_t key = v;
- if (st_lookup(compat_allocator_tbl, (st_data_t)allocator, (st_data_t*)&compat)) {
+ if (st_lookup(compat_allocator_tbl, (st_data_t)allocator, (st_data_t*)(void*)&compat)) {
compat->loader(real_obj, v);
}
st_delete(arg->compat_tbl, &key, 0);
@@ -1034,7 +1034,7 @@ obj_alloc_by_path(const char *path, struct load_arg *arg)
klass = path2class(path);
allocator = rb_get_alloc_func(klass);
- if (st_lookup(compat_allocator_tbl, (st_data_t)allocator, (st_data_t*)&compat)) {
+ if (st_lookup(compat_allocator_tbl, (st_data_t)allocator, (st_data_t*)(void*)&compat)) {
VALUE real_obj = rb_obj_alloc(klass);
VALUE obj = rb_obj_alloc(compat->oldclass);
st_insert(arg->compat_tbl, (st_data_t)obj, (st_data_t)real_obj);