summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 05:17:49 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 05:17:49 +0000
commitfddfc0be0284d6a0db2808a6d0d8f8de47b17eea (patch)
tree2f710dac4ca50f7699a995536d95c2c3a4448785 /ext/syck
parentf8c300e06394b21c82a0e976a56e0322870955ee (diff)
* ext/syck/emitter.c (syck_emit): passing an int* value to the long* parameter causes unaligned access on LP64 systems. [ruby-dev:27161]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/emitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c
index 6a5e43c..5cc0906 100644
--- a/ext/syck/emitter.c
+++ b/ext/syck/emitter.c
@@ -359,7 +359,8 @@ syck_emit( SyckEmitter *e, st_data_t n )
{
SYMID oid;
char *anchor_name = NULL;
- int indent = 0, x = 0;
+ int indent = 0;
+ long x = 0;
SyckLevel *lvl = syck_emitter_current_level( e );
/*