From b87571100aa71606fed0fafc6608a277efa6fdcf Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 10 Jan 2018 03:54:02 +0000 Subject: [PATCH] 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 --- string.c | 2 ++ 1 file changed, 2 insertions(+) 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