diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2013-06-07 20:00:37 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2013-06-08 03:24:47 +0200 |
| commit | 43cae880790b532e5b3e2fb99c64a4ec78030652 (patch) | |
| tree | 75071fc72f9db7179be51239702a2c810a76cee5 /src/rt/rust_task.cpp | |
| parent | b8cf2f8056d29423430b723acd70e525d1249a32 (diff) | |
| download | rust-43cae880790b532e5b3e2fb99c64a4ec78030652.tar.gz rust-43cae880790b532e5b3e2fb99c64a4ec78030652.zip | |
Lexer: Fix offset handling in get_str_from()
As the comment said, the subtraction is bogus for multibyte characters. Fortunately, we can just use last_pos instead of pos to get the correct position without any subtraction hackery.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
