about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-10-03 21:20:04 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-10-03 21:20:04 +0100
commit80eb616bd3e502d4fcb0541a92ec75f2921294d9 (patch)
tree6e9fd348c1a05a0d2e321d1a426f3ed648af3a8d /src/rustllvm/RustWrapper.cpp
parent9a2286d3a13c4a97340c99c86c718654f6cb2ed6 (diff)
downloadrust-80eb616bd3e502d4fcb0541a92ec75f2921294d9.tar.gz
rust-80eb616bd3e502d4fcb0541a92ec75f2921294d9.zip
Fix preallocation amount in String::from_utf16
`v.len()` counts code units, not UTF-16 bytes. The lower bound is one UTF-8 byte per code unit, not per two code units.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions