We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82062a6 commit f9f942bCopy full SHA for f9f942b
src/test/run-fail/bug-2470-bounds-check-overflow.rs
@@ -20,8 +20,8 @@ fn main() {
20
21
let x = ~[1u,2u,3u];
22
do vec::as_imm_buf(x) |p, _len| {
23
- let base = p as uint; // base = 0x1230 say
24
- let idx = base / sys::size_of::<uint>(); // idx = 0x0246 say
+ let base = p as uint;
+ let idx = base / sys::size_of::<uint>();
25
error!("ov1 base = 0x%x", base);
26
error!("ov1 idx = 0x%x", idx);
27
error!("ov1 sizeof::<uint>() = 0x%x", sys::size_of::<uint>());
0 commit comments