pass jny: fixed missing quotes around the type value for the cell sort
authorAki Van Ness <aki@yosyshq.com>
Thu, 10 Mar 2022 16:04:44 +0000 (11:04 -0500)
committerN. Engelhardt <nakengelhardt@gmail.com>
Fri, 8 Apr 2022 06:05:15 +0000 (08:05 +0200)
backends/jny/jny.cc

index 8025d42d26f47a857f487daf61dc03b10c279dbc..1cbfaaddc098f79032a00c603b0809d38650208d 100644 (file)
@@ -302,7 +302,7 @@ struct JnyWriter
         const auto _indent = gen_indent(indent_level);
 
         f << _indent << "{\n";
-        f << stringf("  %s\"type\": %s,\n", _indent.c_str(), sort.first.c_str());
+        f << stringf("  %s\"type\": \"%s\",\n", _indent.c_str(), sort.first.c_str());
         f << _indent << "  \"ports\": [\n";
 
         write_cell_ports(port_cell, indent_level + 2);