]> git.lizzy.rs Git - rust.git/commit
Fix test for 32-bit targets.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 17 Apr 2015 00:03:38 +0000 (02:03 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 17 Apr 2015 00:03:38 +0000 (02:03 +0200)
commit4f678509649a59daa17dc968b2aeb1023fb23c0f
tree2da2570042d0407591e8f23953920ff3cba8cef2
parent0610ee490e2cc1386f300a6855c6a8a78dcba636
Fix test for 32-bit targets.

(The cast from the 64-bit value to isize was using the lower 32-bits,
which led to it being treated as a large positive value rather than a
smallish negative one. The fix was to use the same bits for the upper-
and lower- 32 bits.)
src/test/run-pass/wrapping-int-api.rs