aboutsummaryrefslogtreecommitdiffstats
path: root/ext/syck
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 04:36:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 04:36:31 +0000
commit438b8706a7b4353a2208debaaf2fa2335ea94b1a (patch)
treeb8b497be9818d3dca50fc2d178f58f933df3e10a /ext/syck
parentb4a9962e85b8b58090f579b9cd9c0f593460f70c (diff)
downloadruby-438b8706a7b4353a2208debaaf2fa2335ea94b1a.tar.gz
* ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings.
patch from Charlie Savage. [ruby-core:22869] * ext/digest/bubblebabble/bubblebabble.c (bubblebabble_str_new): ditto. * ext/digest/digest.c (hexencode_str_new): ditto. * ext/iconv/iconv.c (iconv_convert): ditto. * ext/socket/socket.c (inspect_sockaddr): ditto. * ext/socket/raddrinfo.c (sockaddr_obj): ditto. * ext/syck/emitter.c (syck_emitter_write): ditto. * ext/syck/emitter.c (syck_emitter_flush): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/emitter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c
index 73ff5d7a0b..18f2cdefef 100644
--- a/ext/syck/emitter.c
+++ b/ext/syck/emitter.c
@@ -294,7 +294,7 @@ syck_emitter_write( SyckEmitter *e, const char *str, long len )
* Flush if at end of buffer
*/
at = e->marker - e->buffer;
- if ( len + at >= e->bufsize )
+ if ( len + at >= (long)e->bufsize )
{
syck_emitter_flush( e, 0 );
for (;;) {
@@ -326,7 +326,7 @@ syck_emitter_flush( SyckEmitter *e, long check_room )
*/
if ( check_room > 0 )
{
- if ( e->bufsize > ( e->marker - e->buffer ) + check_room )
+ if ( (long)e->bufsize > ( e->marker - e->buffer ) + check_room )
{
return;
}
@@ -459,7 +459,7 @@ void syck_emit_tag( SyckEmitter *e, const char *tag, const char *ignore )
const char *subd = tag + 4;
while ( *subd != ':' && *subd != '\0' ) subd++;
if ( *subd == ':' ) {
- if ( subd - tag > ( strlen( YAML_DOMAIN ) + 5 ) &&
+ if ( subd - tag > ( (long)( strlen( YAML_DOMAIN ) + 5 )) &&
strncmp( subd - strlen( YAML_DOMAIN ), YAML_DOMAIN, strlen( YAML_DOMAIN ) ) == 0 ) {
syck_emitter_write( e, tag + 4, subd - strlen( YAML_DOMAIN ) - ( tag + 4 ) - 1 );
syck_emitter_write( e, "/", 1 );