mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 04:10:07 +00:00
Move error handling for casting
This commit is contained in:
+1
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user