Json bugfix
authorClifford Wolf <clifford@clifford.at>
Tue, 3 Mar 2015 08:41:41 +0000 (09:41 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 3 Mar 2015 08:41:41 +0000 (09:41 +0100)
backends/json/json.cc

index 889e5b7ece3366df5d3cceb732c5a199b2f2be04..54bb4357cedd67a08a6152d65795f16649274c8d 100644 (file)
@@ -68,7 +68,7 @@ struct JsonWriter
                                string &s = sigids[bit];
                                if (bit.wire == nullptr) {
                                        if (bit == State::S0) s = "\"0\"";
-                                       else if (bit == State::S1) s = "\"0\"";
+                                       else if (bit == State::S1) s = "\"1\"";
                                        else if (bit == State::Sz) s = "\"z\"";
                                        else s = "\"x\"";
                                } else