aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-02 00:06:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-02 00:06:04 +0000
commit9804ee31875d8ace53a3fa4dbd1991420e7ffd14 (patch)
tree4d0499f86dfb1232d320b750e588f927f24329f4 /string.c
parent07e5581e7abf15b6ba2abc5121a51cf3592e6e31 (diff)
downloadruby-9804ee31875d8ace53a3fa4dbd1991420e7ffd14.tar.gz
string.c: fix braces
* string.c (search_nonascii): fix braces unmatched by a preprocessing condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/string.c b/string.c
index 459b6e9a4d..442776c85c 100644
--- a/string.c
+++ b/string.c
@@ -429,8 +429,8 @@ search_nonascii(const char *p, const char *e)
# define NONASCII_MASK 0x80808080UL
#endif
+ if (UNALIGNED_WORD_ACCESS || e - p >= SIZEOF_VOIDP) {
#if !UNALIGNED_WORD_ACCESS
- if (e - p >= SIZEOF_VOIDP) {
if ((uintptr_t)p % SIZEOF_VOIDP) {
int l = SIZEOF_VOIDP - (uintptr_t)p % SIZEOF_VOIDP;
p += l;
@@ -448,8 +448,6 @@ search_nonascii(const char *p, const char *e)
case 0: break;
}
}
-#else
- {
#endif
s = (const uintptr_t *)p;
t = (const uintptr_t *)(e - (SIZEOF_VOIDP-1));