diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-12-20 10:21:07 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-12-20 10:21:07 +0300 |
commit | 5732651cfc04c3a5dbe044bbf4869e6701c44b17 (patch) | |
tree | 66d79a3fa8d7fd33c94af19726fb8d6941237f32 /dyn_load.c | |
parent | bfe8e64b1780a2c2420ad56f2afe2213547e1aa0 (diff) | |
download | bdwgc-5732651cfc04c3a5dbe044bbf4869e6701c44b17.tar.gz |
Fix (adjust) GC_scratch_alloc actual argument type
* dyn_load.c [IRIX5 || USE_PROC_FOR_LIBRARIES && !LINUX]
(GC_register_dynamic_libraries): Do not cast GC_scratch_alloc argument
to word type (it should be of size_t).
* headers.c (alloc_hdr, GC_init_headers, get_index): Likewise.
* os_dep.c [PROC_VDB] (GC_proc_buf_size): Change type from word to size_t.
* os_dep.c [PROC_VDB] (GC_read_dirty): Change type of new_size local
variable (which is passed to GC_scratch_alloc) from word to size_t.
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -819,7 +819,7 @@ GC_INNER void GC_register_dynamic_libraries(void) current_sz = needed_sz * 2 + 1; /* Expansion, plus room for 0 record */ addr_map = (prmap_t *)GC_scratch_alloc( - (word)current_sz * sizeof(prmap_t)); + (size_t)current_sz * sizeof(prmap_t)); if (addr_map == NULL) ABORT("Insufficient memory for address map"); } |