ruby-changes:15871
From: nobu <ko1@a...>
Date: Sun, 16 May 2010 11:46:26 +0900 (JST)
Subject: [ruby-changes:15871] Ruby:r27808 (trunk): * cont.c (fiber_set_stack_location), iseq.c (prepare_iseq_build),
nobu 2010-05-16 11:46:16 +0900 (Sun, 16 May 2010) New Revision: 27808 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27808 Log: * cont.c (fiber_set_stack_location), iseq.c (prepare_iseq_build), node.c (dump_node): suppress warnings. Modified files: trunk/cont.c trunk/iseq.c trunk/node.c Index: iseq.c =================================================================== --- iseq.c (revision 27807) +++ iseq.c (revision 27808) @@ -229,7 +229,7 @@ iseq->name = name; iseq->filename = filename; iseq->filepath = filepath == Qnil ? Qnil : rb_realpath_internal(Qnil, filepath, 1); - iseq->line_no = line_no; + iseq->line_no = (unsigned short)line_no; /* TODO: really enough? */ iseq->defined_method_id = 0; iseq->mark_ary = rb_ary_tmp_new(3); OBJ_UNTRUST(iseq->mark_ary); Index: cont.c =================================================================== --- cont.c (revision 27807) +++ cont.c (revision 27808) @@ -495,10 +495,10 @@ fiber_set_stack_location(void) { rb_thread_t *th = GET_THREAD(); - VALUE ptr; + VALUE *ptr; SET_MACHINE_STACK_END(&ptr); - th->machine_stack_start = (void*)((ptr & PAGE_MASK) + STACK_UPPER(&ptr, 0, PAGE_SIZE)); + th->machine_stack_start = (void*)(((VALUE)ptr & PAGE_MASK) + STACK_UPPER(&ptr, 0, PAGE_SIZE)); } static VOID CALLBACK Index: node.c =================================================================== --- node.c (revision 27807) +++ node.c (revision 27808) @@ -501,7 +501,7 @@ F_CUSTOM1(nd_nth, "variable", { char name[3]; name[0] = '$'; - name[1] = node->nd_nth; + name[1] = (char)node->nd_nth; name[2] = '\0'; A(name); }); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/