[macruby-changes] [2272] MacRuby/trunk/ext/libyaml/rubyext.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 10 10:10:24 PDT 2009


Revision: 2272
          http://trac.macosforge.org/projects/ruby/changeset/2272
Author:   pthomson at apple.com
Date:     2009-08-10 10:10:24 -0700 (Mon, 10 Aug 2009)
Log Message:
-----------
Fixed some compiler warnings.

Modified Paths:
--------------
    MacRuby/trunk/ext/libyaml/rubyext.c

Modified: MacRuby/trunk/ext/libyaml/rubyext.c
===================================================================
--- MacRuby/trunk/ext/libyaml/rubyext.c	2009-08-10 17:02:40 UTC (rev 2271)
+++ MacRuby/trunk/ext/libyaml/rubyext.c	2009-08-10 17:10:24 UTC (rev 2272)
@@ -337,8 +337,8 @@
 	{
 		tag = "tag:yaml.org,2002:str";
 	}
-	VALUE handler = handler_for_tag(parser, tag);
-	VALUE scalarval = CFStringCreateWithBytes(NULL, (const UInt8*)val, parser->event.data.scalar.length,
+	VALUE handler = handler_for_tag(parser, (yaml_char_t*)tag);
+	VALUE scalarval = (VALUE)CFStringCreateWithBytes(NULL, (const UInt8*)val, parser->event.data.scalar.length,
 		kCFStringEncodingUTF8, true);
 	return interpret_value(parser, scalarval, handler, true);
 }
@@ -696,7 +696,7 @@
 	if(!NIL_P(key)) {
 		rb_yaml_resolver_t *r = RYAMLResolver(self);
 		CFDictionarySetValue(r->tags, (const void*)key, (const void*)handler);
-		char *c = RSTRING_PTR(key);
+		const char *c = RSTRING_PTR(key);
 		CFDictionarySetValue(r->cstr_tags, (const void*)c, (const void*)handler);
 	}
 	return Qnil;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090810/8bd6fe69/attachment.html>


More information about the macruby-changes mailing list