diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-04-20 22:46:07 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-04-20 22:46:07 +0900 |
| commit | 3c1b3478343a7618dac7ac16953e77f45511f505 (patch) | |
| tree | 1cb4f3ebeac5b2ad3abc9d44a03c1d624c33a5a4 /src/regint.h | |
| parent | 2c28d29cecaa1d007f89d3c233d0556345a8ff99 (diff) | |
| download | mruby-3c1b3478343a7618dac7ac16953e77f45511f505.tar.gz mruby-3c1b3478343a7618dac7ac16953e77f45511f505.zip | |
remove dependency to SIZEOF_LONG/LONG_LONG
Diffstat (limited to 'src/regint.h')
| -rw-r--r-- | src/regint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regint.h b/src/regint.h index e86a95f27..bf19eee1a 100644 --- a/src/regint.h +++ b/src/regint.h @@ -246,11 +246,11 @@ } while(0) /* sizeof(OnigCodePoint) */ -#define WORD_ALIGNMENT_SIZE SIZEOF_LONG +#define WORD_ALIGNMENT_SIZE sizeof(uintptr_t) #define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\ (pad_size) = WORD_ALIGNMENT_SIZE \ - - ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\ + - ((uintptr_t)(addr) % WORD_ALIGNMENT_SIZE);\ if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\ } while (0) |
