diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-11 00:41:56 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-11 00:41:56 +0000 |
commit | 9ee1ab0e28c3e9538941a55f1703a1a1ffd5cddf (patch) | |
tree | 3222752d294cf47d78f64a6e70bcf0381af3ea10 /include | |
parent | 0dd39db036cbbfcbf7176eab11d9190415229060 (diff) | |
download | ruby-9ee1ab0e28c3e9538941a55f1703a1a1ffd5cddf.tar.gz |
* include/ruby/oniguruma.h (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE):
parenthesize an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/oniguruma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/oniguruma.h b/include/ruby/oniguruma.h index df4d07b115..0cf2e0c6e4 100644 --- a/include/ruby/oniguruma.h +++ b/include/ruby/oniguruma.h @@ -285,7 +285,7 @@ ONIG_EXTERN OnigEncodingType OnigEncodingGB18030; #define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) (n) #define ONIGENC_CONSTRUCT_MBCLEN_INVALID() (-1) -#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n) (-1-n) +#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n) (-1-(n)) static inline int onigenc_mbclen_charfound(int r) { return 0 < r ? r : 0; } static inline int onigenc_mbclen_needmore(int r) { return r < -1 ? -1 - r : 0; } |