1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/encoding.h: suppress warnings of overflow.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-03-12 00:16:00 +00:00
parent ab46076e38
commit 53d061ec33
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 12 09:15:14 2009 Tanaka Akira <akr@fsij.org>
* include/ruby/encoding.h: suppress warnings of overflow.
Thu Mar 12 05:49:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (warnflags): added some default flags,

View file

@ -17,11 +17,11 @@
#define ENCODING_INLINE_MAX 1023
#define ENCODING_SHIFT (FL_USHIFT+10)
#define ENCODING_MASK (ENCODING_INLINE_MAX<<ENCODING_SHIFT)
#define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<<ENCODING_SHIFT)
#define ENCODING_SET_INLINED(obj,i) do {\
RBASIC(obj)->flags &= ~ENCODING_MASK;\
RBASIC(obj)->flags |= (i) << ENCODING_SHIFT;\
RBASIC(obj)->flags |= (VALUE)(i) << ENCODING_SHIFT;\
} while (0)
#define ENCODING_SET(obj,i) do {\
VALUE rb_encoding_set_obj = (obj); \