Move error handling for casting

This commit is contained in:
Ginger Bill
2017-02-14 17:33:11 +00:00
parent 2722de65b7
commit daa1cd55a1
2 changed files with 84 additions and 81 deletions
+1 -2
View File
@@ -155,10 +155,9 @@ buffer_write_type :: proc(buf: ^Buffer, ti: ^Type_Info) {
case Tuple:
count := info.names.count;
if count != 1 { buffer_write_string(buf, "("); }
for i in 0..<count {
for name, i in info.names {
if i > 0 { buffer_write_string(buf, ", "); }
name := info.names[i];
type := info.types[i];
if name.count > 0 {