From dc548ba04e468824edc3b4fe3210ae12c10f6100 Mon Sep 17 00:00:00 2001 From: charliesome Date: Sun, 11 Aug 2013 04:23:12 +0000 Subject: [PATCH] * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this should be sufficient to represent all the encodings Ruby supports. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ include/ruby/encoding.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b65afdda67..73e1f9e094 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Aug 11 13:17:00 2013 Charlie Somerville + + * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this + should be sufficient to represent all the encodings Ruby supports. + Sun Aug 11 11:54:38 2013 Tanaka Akira * process.c (rb_clock_gettime): New method. diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 847d7dd810..3db70acaf3 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -24,9 +24,9 @@ extern "C" { RUBY_SYMBOL_EXPORT_BEGIN -#define ENCODING_INLINE_MAX 1023 +#define ENCODING_INLINE_MAX 127 #define ENCODING_SHIFT (FL_USHIFT+10) -#define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<flags &= ~ENCODING_MASK;\