smartlist.rs: The libc::c_char type is not the same as i8.
commit1dab8bae21bc32e5d4e3ff954f4919d6506ad2e1
authorNick Mathewson <nickm@torproject.org>
Thu, 4 Jan 2018 17:20:54 +0000 (4 12:20 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 4 Jan 2018 17:21:55 +0000 (4 12:21 -0500)
tree5bf70e6e8c0c67908ae2307335c54c1cd485cc19
parente0ccec219b5dae32a6c469f01a615509e61dbc5e
smartlist.rs: The libc::c_char type is not the same as i8.

The code had been using c_char and i8 interchangeably, but it turns
out that c_char is only i8 on platforms where "char" is signed. On
other platforms, c_char is u8.

Fixes bug 24794; bug not on any released Tor.
src/rust/smartlist/smartlist.rs