зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ab46076e38
Коммит
53d061ec33
|
@ -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,
|
||||
|
|
|
@ -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); \
|
||||
|
|
Загрузка…
Ссылка в новой задаче