mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ULL suffix is a C99ism
... and why not just use ~0 instead? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e743a35314
commit
fa26bdc601
1 changed files with 1 additions and 7 deletions
8
re.c
8
re.c
|
@ -105,13 +105,7 @@ rb_memsearch_ss(const unsigned char *xs, long m, const unsigned char *ys, long n
|
|||
{
|
||||
const unsigned char *x = xs, *xe = xs + m;
|
||||
const unsigned char *y = ys, *ye = ys + n;
|
||||
#ifndef VALUE_MAX
|
||||
# if SIZEOF_VALUE == 8
|
||||
# define VALUE_MAX 0xFFFFFFFFFFFFFFFFULL
|
||||
# elif SIZEOF_VALUE == 4
|
||||
# define VALUE_MAX 0xFFFFFFFFUL
|
||||
# endif
|
||||
#endif
|
||||
#define VALUE_MAX ((VALUE)~(VALUE)0)
|
||||
VALUE hx, hy, mask = VALUE_MAX >> ((SIZEOF_VALUE - m) * CHAR_BIT);
|
||||
|
||||
if (m > SIZEOF_VALUE)
|
||||
|
|
Loading…
Add table
Reference in a new issue