[macruby-changes] [2227] MacRuby/branches/experimental/ext/libyaml/rubyext.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 5 13:20:53 PDT 2009
Revision: 2227
http://trac.macosforge.org/projects/ruby/changeset/2227
Author: pthomson at apple.com
Date: 2009-08-05 13:20:53 -0700 (Wed, 05 Aug 2009)
Log Message:
-----------
Fixed some compiler warnings.
Modified Paths:
--------------
MacRuby/branches/experimental/ext/libyaml/rubyext.c
Modified: MacRuby/branches/experimental/ext/libyaml/rubyext.c
===================================================================
--- MacRuby/branches/experimental/ext/libyaml/rubyext.c 2009-08-05 20:20:52 UTC (rev 2226)
+++ MacRuby/branches/experimental/ext/libyaml/rubyext.c 2009-08-05 20:20:53 UTC (rev 2227)
@@ -269,14 +269,14 @@
tag = "tag:yaml.org,2002:str";
}
VALUE scalarval = rb_str_new(val, parser->event.data.scalar.length);
- return interpret_value(parser, scalarval, rb_str_new2(tag));
+ return interpret_value(parser, scalarval, rb_str_new2((char*)tag));
}
static VALUE handle_sequence(rb_yaml_parser_t *parser)
{
VALUE node;
VALUE tag = (parser->event.data.sequence_start.tag == NULL) ? Qnil :
- rb_str_new2(parser->event.data.sequence_start.tag);
+ rb_str_new2((char*)parser->event.data.sequence_start.tag);
VALUE arr = rb_ary_new();
while(node = get_node(parser))
{
@@ -289,7 +289,7 @@
{
VALUE key_node, value_node;
VALUE tag = (parser->event.data.mapping_start.tag == NULL) ? Qnil :
- rb_str_new2(parser->event.data.mapping_start.tag);
+ rb_str_new2((char*)parser->event.data.mapping_start.tag);
VALUE hash = rb_hash_new();
while(key_node = get_node(parser))
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090805/6c4ab545/attachment.html>
More information about the macruby-changes
mailing list