Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: fix external string length calculation
Make StringBytes::GetExternalParts() return the byte length for two-byte strings, not the character length. Its callers operate on bytes, not characters. This also fixes StringBytes::Size() reporting only half of the actual number of bytes for external two-byte strings. PR-URL: #1042 Reviewed-By: Trevor Norris <[email protected]>
- Loading branch information