1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

resolved #84372 RURBAN++

This commit is contained in:
Kenichi Ishigaki 2013-04-02 14:50:41 +00:00
parent a45e3add05
commit 04e45e686e

View file

@ -2667,10 +2667,10 @@ static int perl_tokenizer_Next(
/* recompute start/end offsets in bytes, not in chars */
hop = *piStartOffset - c->lastCharOffset;
byteOffset = utf8_hop((U8*)c->lastByteOffset, hop);
byteOffset = (char*)utf8_hop((U8*)c->lastByteOffset, hop);
hop = *piEndOffset - *piStartOffset;
*piStartOffset = byteOffset - c->pInput;
byteOffset = utf8_hop(byteOffset, hop);
byteOffset = (char*)utf8_hop((U8*)byteOffset, hop);
*piEndOffset = byteOffset - c->pInput;
/* remember where we are for next round */