diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-19 05:17:49 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-19 05:17:49 +0000 |
commit | fddfc0be0284d6a0db2808a6d0d8f8de47b17eea (patch) | |
tree | 2f710dac4ca50f7699a995536d95c2c3a4448785 | |
parent | f8c300e06394b21c82a0e976a56e0322870955ee (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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/syck/emitter.c | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Sep 19 14:17:04 2005 Minero Aoki <aamine@loveruby.net> + + * ext/syck/emitter.c (syck_emit): passing an int* value to the + long* parameter causes unaligned access on LP64 systems. + [ruby-dev:27161] + Mon Sep 19 13:44:03 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c: avoid core dump with WIN32OLE_EVENT. diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c index 6a5e43c9ee..5cc0906296 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 ); /* |