fixing error in tags formatting
This commit is contained in:
parent
1bd526da35
commit
f1cc410119
@ -59,10 +59,10 @@ impl Env {
|
||||
}
|
||||
}
|
||||
fn fmt(&self) {
|
||||
print!("{{");
|
||||
let mut i = 0;
|
||||
let len = self.hashmap.len();
|
||||
if len > 0 {
|
||||
print!("{{");
|
||||
for (key, val) in self.hashmap.iter() {
|
||||
print!("{:?} :", key);
|
||||
match val {
|
||||
@ -273,7 +273,7 @@ fn fmt_tags(tagmask: u32) {
|
||||
let mut current: u32;
|
||||
while {
|
||||
current = 1 << tag;
|
||||
current <= tagmask || tag < 32
|
||||
tag == 32 || current <= tagmask
|
||||
} {
|
||||
tag += 1;
|
||||
if current != tagmask && (tagmask / current) % 2 != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user