compile.c, gc.c: suppress warnings
* compile.c (iseq_compile_each): suppress implicit conversion warning by old apple gcc 4.2. * gc.c (RVALUE_FLAGS_AGE, heap_page_allocate): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7f6d9e25a
commit
e5a3c25a69
@ -4017,7 +4017,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
|||||||
DECL_ANCHOR(args);
|
DECL_ANCHOR(args);
|
||||||
VALUE argc;
|
VALUE argc;
|
||||||
unsigned int flag = 0;
|
unsigned int flag = 0;
|
||||||
VALUE asgnflag = 0;
|
unsigned int asgnflag = 0;
|
||||||
ID id = node->nd_mid;
|
ID id = node->nd_mid;
|
||||||
int boff = 0;
|
int boff = 0;
|
||||||
|
|
||||||
|
4
gc.c
4
gc.c
@ -935,7 +935,7 @@ static void rgengc_rememberset_mark(rb_objspace_t *objspace, rb_heap_t *heap);
|
|||||||
static inline int
|
static inline int
|
||||||
RVALUE_FLAGS_AGE(VALUE flags)
|
RVALUE_FLAGS_AGE(VALUE flags)
|
||||||
{
|
{
|
||||||
return (flags & (FL_PROMOTED0 | FL_PROMOTED1)) >> RVALUE_AGE_SHIFT;
|
return (int)((flags & (FL_PROMOTED0 | FL_PROMOTED1)) >> RVALUE_AGE_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* USE_RGENGC */
|
#endif /* USE_RGENGC */
|
||||||
@ -1396,7 +1396,7 @@ heap_page_allocate(rb_objspace_t *objspace)
|
|||||||
if ((VALUE)start % sizeof(RVALUE) != 0) {
|
if ((VALUE)start % sizeof(RVALUE) != 0) {
|
||||||
int delta = (int)(sizeof(RVALUE) - ((VALUE)start % sizeof(RVALUE)));
|
int delta = (int)(sizeof(RVALUE) - ((VALUE)start % sizeof(RVALUE)));
|
||||||
start = (RVALUE*)((VALUE)start + delta);
|
start = (RVALUE*)((VALUE)start + delta);
|
||||||
limit = (HEAP_SIZE - (int)((VALUE)start - (VALUE)page_body))/sizeof(RVALUE);
|
limit = (HEAP_SIZE - (int)((VALUE)start - (VALUE)page_body))/(int)sizeof(RVALUE);
|
||||||
}
|
}
|
||||||
end = start + limit;
|
end = start + limit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user