summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-10 03:54:02 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-10 03:54:02 +0000
commitb87571100aa71606fed0fafc6608a277efa6fdcf (patch)
tree039e7b1c87e4b4ec79edc108148c4a117b12d97a
parent5ad95486e63675b2bb3ad665bb2b84eb260c6f29 (diff)
should cause preprocess error as other cases
* string.c (NONASCII_MASK): should cause preprocess error immediately if the compiler does not satisfy our assumptions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/string.c b/string.c
index 582f58f485..798fd52e3c 100644
--- a/string.c
+++ b/string.c
@@ -448,6 +448,8 @@ search_nonascii(const char *p, const char *e)
# define NONASCII_MASK UINT64_C(0x8080808080808080)
# elif SIZEOF_UINTPTR_T == 4
# define NONASCII_MASK UINT32_C(0x80808080)
+# else
+# error "don't know what to do."
# endif
#else
# if SIZEOF_UINTPTR_T == 8