diff options
| author | snaba <[email protected]> | 2012-04-23 09:42:29 +0900 |
|---|---|---|
| committer | snaba <[email protected]> | 2012-04-23 09:42:29 +0900 |
| commit | 1f87caa2c76bc3b522455b400ab1ff362bfeaa15 (patch) | |
| tree | 713cf17746e245aa03af0d86c8f62bd5b983bebd /src/regint.h | |
| parent | 210fcdc14b7531e2888e9ebb67d2c77b9f5302c0 (diff) | |
| parent | cf6e7966d3de0de1cf03e8c72dbde474d61d9f7d (diff) | |
| download | mruby-1f87caa2c76bc3b522455b400ab1ff362bfeaa15.tar.gz mruby-1f87caa2c76bc3b522455b400ab1ff362bfeaa15.zip | |
Merge branch 'master' of github.com:mruby/mruby
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) |
