зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
368d944621
Коммит
8a6c699282
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Thu Jul 31 10:51:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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@tsg.ne.jp>
|
||||
|
||||
* ext/syck/rubyext.c (rb_syck_compile): remove meaningless branch
|
||||
|
|
|
@ -495,7 +495,7 @@ ossl_asn1_get_asn1type(VALUE obj)
|
|||
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 */
|
||||
|
|
|
@ -644,7 +644,7 @@ rb_syck_err_handler(SyckParser *p, const char *msg)
|
|||
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,
|
||||
|
|
|
@ -499,7 +499,7 @@ syck_parse( SyckParser *p )
|
|||
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 );
|
||||
|
|
2
iseq.c
2
iseq.c
|
@ -733,7 +733,7 @@ ruby_iseq_disasm_insn(VALUE ret, VALUE *iseq, int pos,
|
|||
}
|
||||
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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче