From f1cc410119cf1994124e8a8ad1b50ea6cfda2c86 Mon Sep 17 00:00:00 2001 From: Bryan Ndjeutcha Date: Sat, 21 Aug 2021 14:52:02 -0400 Subject: [PATCH] fixing error in tags formatting --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index af044a8..20d1ba3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {