diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-01 09:07:14 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-01 09:07:14 +0000 |
commit | db2c32778d46922abb5fc279ac9580c303edd7c0 (patch) | |
tree | 4d01d11285bf9c9c6428bed77da903347f756289 | |
parent | 396d835d098e39efec080a22d4b5102c5084819f (diff) | |
download | ruby-db2c32778d46922abb5fc279ac9580c303edd7c0.tar.gz |
Use WORDS_BIGENDIAN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -449,10 +449,10 @@ search_nonascii(const char *p, const char *e) const uintptr_t *t = (const uintptr_t *)(e - (SIZEOF_VOIDP-1)); for (;s < t; s++) { if (*s & NONASCII_MASK) { -#if BYTE_ORDER == LITTLE_ENDIAN - return (const char *)s + (ntz_intptr(*s&NONASCII_MASK)>>3); -#else +#ifdef WORDS_BIGENDIAN return (const char *)s + (nlz_intptr(*s&NONASCII_MASK)>>3); +#else + return (const char *)s + (ntz_intptr(*s&NONASCII_MASK)>>3); #endif } } |