about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2013-06-07 20:00:37 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2013-06-08 03:24:47 +0200
commit43cae880790b532e5b3e2fb99c64a4ec78030652 (patch)
tree75071fc72f9db7179be51239702a2c810a76cee5 /src/rt/rust_task.cpp
parentb8cf2f8056d29423430b723acd70e525d1249a32 (diff)
downloadrust-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