ruby-changes:6310
From: mame <ko1@a...>
Date: Thu, 3 Jul 2008 01:46:04 +0900 (JST)
Subject: [ruby-changes:6310] Ruby:r17826 (trunk): * regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
mame 2008-07-03 01:45:05 +0900 (Thu, 03 Jul 2008) New Revision: 17826 Modified files: trunk/ChangeLog trunk/regint.h Log: * regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to uintptr_t instead of unsigned int. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17826 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17826&r2=17825&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/regint.h?r1=17826&r2=17825&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17825) +++ ChangeLog (revision 17826) @@ -1,12 +1,17 @@ +Thu Jul 3 01:44:01 2008 Yusuke Endoh <mame@t...> + + * regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to + uintptr_t instead of unsigned int. + Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@t...> - * sprintf.c: include ieeefp.h to refer isinf. + * sprintf.c: include ieeefp.h to refer isinf. - * ext/bigdecimal/bigdecimal.c: ditto. + * ext/bigdecimal/bigdecimal.c: ditto. - * ext/json/ext/generator/generator.c: ditto. + * ext/json/ext/generator/generator.c: ditto. - * rational.c: ditto. + * rational.c: ditto. Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@t...> Index: regint.h =================================================================== --- regint.h (revision 17825) +++ regint.h (revision 17826) @@ -262,13 +262,13 @@ #define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\ (pad_size) = WORD_ALIGNMENT_SIZE \ - - ((unsigned int )(addr) % WORD_ALIGNMENT_SIZE);\ + - ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\ if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\ } while (0) #define ALIGNMENT_RIGHT(addr) do {\ (addr) += (WORD_ALIGNMENT_SIZE - 1);\ - (addr) -= ((unsigned int )(addr) % WORD_ALIGNMENT_SIZE);\ + (addr) -= ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\ } while (0) #endif /* PLATFORM_UNALIGNED_WORD_ACCESS */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/