ruby-changes:6767
From: nobu <ko1@a...>
Date: Thu, 31 Jul 2008 10:52:05 +0900 (JST)
Subject: [ruby-changes:6767] Ruby:r18283 (trunk): * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which
nobu 2008-07-31 10:51:44 +0900 (Thu, 31 Jul 2008) New Revision: 18283 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18283 Log: * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which int size differs from pointer size. * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto * ext/syck/rubyext.c (rb_syck_err_handler), (syck_default_error_handler): ditto. Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_asn1.c trunk/ext/syck/rubyext.c trunk/ext/syck/syck.c trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18282) +++ ChangeLog (revision 18283) @@ -1,3 +1,13 @@ +Thu Jul 31 10:51:39 2008 Nobuyoshi Nakada <nobu@r...> + + * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which + int size differs from pointer size. + + * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto + + * ext/syck/rubyext.c (rb_syck_err_handler), + (syck_default_error_handler): ditto. + Thu Jul 31 02:21:39 2008 Yusuke Endoh <mame@t...> * ext/syck/rubyext.c (rb_syck_compile): remove meaningless branch Index: iseq.c =================================================================== --- iseq.c (revision 18282) +++ iseq.c (revision 18283) @@ -733,7 +733,7 @@ } else { rb_str_catf(str, "%04d %-16.*s ", pos, - strcspn(insn_name_buff, "_"), insn_name_buff); + (int)strcspn(insn_name_buff, "_"), insn_name_buff); } for (j = 0; types[j]; j++) { Index: ext/openssl/ossl_asn1.c =================================================================== --- ext/openssl/ossl_asn1.c (revision 18282) +++ ext/openssl/ossl_asn1.c (revision 18283) @@ -495,7 +495,7 @@ value = ossl_asn1_get_value(obj); switch(tag){ case V_ASN1_BOOLEAN: - ptr = (void*)obj_to_asn1bool(value); + ptr = (void*)(VALUE)obj_to_asn1bool(value); free_func = NULL; break; case V_ASN1_INTEGER: /* FALLTHROUGH */ Index: ext/syck/rubyext.c =================================================================== --- ext/syck/rubyext.c (revision 18282) +++ ext/syck/rubyext.c (revision 18283) @@ -644,7 +644,7 @@ endl++; endl[0] = '\0'; - rb_raise(rb_eArgError, "%s on line %d, col %d: `%s'", + rb_raise(rb_eArgError, "%s on line %d, col %"PRIdPTRDIFF": `%s'", msg, p->linect, p->cursor - p->lineptr, Index: ext/syck/syck.c =================================================================== --- ext/syck/syck.c (revision 18282) +++ ext/syck/syck.c (revision 18283) @@ -499,7 +499,7 @@ void syck_default_error_handler( SyckParser *p, const char *msg ) { - printf( "Error at [Line %d, Col %d]: %s\n", + printf( "Error at [Line %d, Col %"PRIdPTRDIFF"]: %s\n", p->linect, p->cursor - p->lineptr, msg ); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/