]> git.lizzy.rs Git - rust.git/commit
Correct handling of non-numeric chars in parse_buf
authorMatt Brubeck <mbrubeck@limpet.net>
Mon, 31 Oct 2011 13:32:28 +0000 (06:32 -0700)
committerMarijn Haverbeke <marijnh@gmail.com>
Mon, 31 Oct 2011 15:15:32 +0000 (16:15 +0100)
commit4739942e7415d89425453d25427c51f96328c52b
treef4c2808aa5abae99be1499238f0092ebfc9d351c
parent6f37accb290e29f812b324853f991c2c575e0de6
Correct handling of non-numeric chars in parse_buf

Without this fix, int::parse_buf and uint::parse_buf return incorrect results
for any strings that contain non-numeric characters.  Fixes #1102.
src/lib/int.rs
src/lib/uint.rs
src/test/stdtest/int.rs
src/test/stdtest/uint.rs