diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-15 18:51:18 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-15 18:51:18 +0200 |
| commit | d4d910bcfcf96a6e2e393f56a905e40608d6a575 (patch) | |
| tree | 04d5e6c438d8a30b57fe7b3cb119801d6bddbab2 /src/llvm_backend_proc.cpp | |
| parent | 55e0f97cc46ae904e27997c576f88e9542af6c48 (diff) | |
fmt: fix optional_len or use_nul_termination being used by both array and elems
```odin
My_Struct :: struct {
names: [^]string `fmt:"v,name_count"`,
name_count: int,
}
main :: proc() {
name := "hello?"
foo := My_Struct {
names = &name,
name_count = 1,
}
fmt.println(foo)
}
```
Before: `My_Struct{names = ["h"], name_count = 1}`
After: `My_Struct{names = ["hello?"], name_count = 1}`
Diffstat (limited to 'src/llvm_backend_proc.cpp')
0 files changed, 0 insertions, 0 deletions