summaryrefslogtreecommitdiffstats
path: root/ext/syck
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 09:01:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 09:01:27 +0000
commit6d65a81bdb5c96528c1655dcbd0e850396b56116 (patch)
tree6864b45f2703f633701190581f5de3fa7b6d69b5 /ext/syck
parentea365de67dd5aa765e77bee97091c62bc8f24d29 (diff)
downloadruby-6d65a81bdb5c96528c1655dcbd0e850396b56116.tar.gz
ruby-6d65a81bdb5c96528c1655dcbd0e850396b56116.tar.xz
ruby-6d65a81bdb5c96528c1655dcbd0e850396b56116.zip
* ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c,
ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move incluion of config.h to pacify AIX. a patch from Yutaka Kanemoto <kinpoco at gmail.com>. [ruby-dev:29197] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/syck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 20b124ab2..daf531632 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -412,7 +412,8 @@ syck_move_tokens( SyckParser *p )
skip = p->limit - p->token;
if ( ( count = p->token - p->buffer ) )
{
- S_MEMMOVE( p->buffer, p->token, char, skip );
+ if (skip > 0)
+ S_MEMMOVE( p->buffer, p->token, char, skip );
p->token = p->buffer;
p->marker -= count;
p->cursor -= count;