diff options
author | drh <drh@noemail.net> | 2013-01-04 14:06:24 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-01-04 14:06:24 +0000 |
commit | 6578dd67fafe6be4bcbcb83b56ebabfae2545824 (patch) | |
tree | 5406270ab7c715cfa68aad8df9a11125a05436cd /src/test_regexp.c | |
parent | 26de1e99568c0f04a7956f2503bd9fcf007d85e6 (diff) | |
download | sqlite-6578dd67fafe6be4bcbcb83b56ebabfae2545824.tar.gz sqlite-6578dd67fafe6be4bcbcb83b56ebabfae2545824.zip |
Fix the zInit[] optimization of test_regexp.c when the initial string
contains 3-byte UTF8 characters.
FossilOrigin-Name: 357231ec970adb5dfcdaf9665499141004cb1198
Diffstat (limited to 'src/test_regexp.c')
-rw-r--r-- | src/test_regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_regexp.c b/src/test_regexp.c index 87fb3db5b..2fede8c4e 100644 --- a/src/test_regexp.c +++ b/src/test_regexp.c @@ -652,7 +652,7 @@ const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){ }else if( x<=0xffff ){ pRe->zInit[j++] = 0xd0 | (x>>12); pRe->zInit[j++] = 0x80 | ((x>>6)&0x3f); - pRe->zInit[j++] = 0x80 | ((x>>6)&0x3f); + pRe->zInit[j++] = 0x80 | (0x3f); }else{ break; } |