Browse Source

Merge pull request #2480 from jakubtomsu/soa-ptr-formatting-fix

Fix panic during fixed-size #soa array pointer formatting in `core:fmt`
gingerBill 2 years ago
parent
commit
be0a543077
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/reflect/types.odin

+ 1 - 1
core/reflect/types.odin

@@ -563,7 +563,7 @@ write_type_writer :: proc(w: io.Writer, ti: ^Type_Info, n_written: ^int = nil) -
 		case .None: // Ignore
 		case .None: // Ignore
 		case .Fixed:
 		case .Fixed:
 			io.write_string(w, "#soa[",           &n) or_return
 			io.write_string(w, "#soa[",           &n) or_return
-			io.write_i64(w, i64(info.soa_len), 10 &n) or_return
+			io.write_i64(w, i64(info.soa_len),    10) or_return
 			io.write_byte(w, ']',                 &n) or_return
 			io.write_byte(w, ']',                 &n) or_return
 			write_type(w, info.soa_base_type,     &n) or_return
 			write_type(w, info.soa_base_type,     &n) or_return
 			return
 			return