Skip to content

Commit

Permalink
Fixed some compiler warnings in libgc
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Aug 13, 2013
1 parent b609cbb commit 9fd216d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libgc/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ word n;
}
# endif
expansion_slop = WORDS_TO_BYTES(min_words_allocd()) + 4*MAXHINCR*HBLKSIZE;
if (GC_last_heap_addr == 0 && !((word)space & SIGNB)
if ((GC_last_heap_addr == 0 && !((word)space & SIGNB))
|| (GC_last_heap_addr != 0 && GC_last_heap_addr < (ptr_t)space)) {
/* Assume the heap is growing up */
GC_greatest_plausible_heap_addr =
Expand Down
2 changes: 1 addition & 1 deletion libgc/obj_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# include "private/gc_priv.h"

map_entry_type * GC_invalid_map = 0;
static max_valid_offset = 0;
static word max_valid_offset = 0;

/* Invalidate the object map associated with a block. Free blocks */
/* are identified by invalid maps. */
Expand Down
2 changes: 1 addition & 1 deletion libgc/ptr_chck.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void (*GC_is_valid_displacement_print_proc) GC_PROTO((GC_PTR)) =
pdispl = HBLKDISPL(p);
map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);
if (map_entry == OBJ_INVALID
|| sz > MAXOBJBYTES && (ptr_t)p >= (ptr_t)h + sz) {
|| (sz > MAXOBJBYTES && (ptr_t)p >= (ptr_t)h + sz)) {
goto fail;
}
return(p);
Expand Down

0 comments on commit 9fd216d

Please sign in to comment.