Project

General

Profile

« Previous | Next » 

Revision 2608f7d9

Added by nobu (Nobuyoshi Nakada) almost 9 years ago

string.c: STR_EMBEDABLE_P

  • string.c (STR_EMBEDABLE_P): extract the predicate macro to tell
    if the given length is capable in an embedded string, and fix
    possible integer overflow.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e