diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 16:45:05 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 16:45:05 +0000 |
commit | ea4b48acd6913efae88a29a023b7158e47e8d468 (patch) | |
tree | e61c201c2fa66611f417448ad12372befeff59f0 /regint.h | |
parent | cadfbc3393bc5f0b183367e9c7c914a4dc054eb9 (diff) | |
download | ruby-ea4b48acd6913efae88a29a023b7158e47e8d468.tar.gz ruby-ea4b48acd6913efae88a29a023b7158e47e8d468.tar.xz ruby-ea4b48acd6913efae88a29a023b7158e47e8d468.zip |
* regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
uintptr_t instead of unsigned int.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
-rw-r--r-- | regint.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |