The "comparing a pair of i16s" thing is clearly not just a Rust issue since the C version had the same hack.