-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Milestone
Description
This program:
use std;
import std::bitv;
fn main() {
let bits = bitv::bitv(8u, false);
io::println(bitv::to_str(bits));
}
infinitely loops, probably due to this definition from bitv.rs:
fn each(v: bitv, f: fn(bool) -> bool) {
let mut i = 0u;
while i < v.nbits {
if !f(get(v, i)) { break; }
}
}
which never increments i.
Metadata
Metadata
Assignees
Labels
No labels