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 | 10d13f89c7302cdb77349f6bdfa1d8c2576b6179 (patch) | |
tree | 3222752d294cf47d78f64a6e70bcf0381af3ea10 /include | |
parent | 8a3eb83c61370d7b0642831c7d63797500aaf0e1 (diff) | |
download | ruby-10d13f89c7302cdb77349f6bdfa1d8c2576b6179.tar.gz ruby-10d13f89c7302cdb77349f6bdfa1d8c2576b6179.tar.xz ruby-10d13f89c7302cdb77349f6bdfa1d8c2576b6179.zip |
* include/ruby/oniguruma.h (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE):
parenthesize an argument.
git-svn-id: http://svn.ruby-lang.org/repos/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 df4d07b11..0cf2e0c6e 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; } |