diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-25 15:27:35 +0100 |
|---|---|---|
| committer | flysand7 <thebumboni@gmail.com> | 2024-12-01 11:54:56 +1100 |
| commit | 0e3572947a64079dda17b487eee74684051b925c (patch) | |
| tree | 265ac8f3496f611caae55b3f6968f641bc296690 /src/main.cpp | |
| parent | 3c3c59fc03c76e4e22f6fb0114e7d3605f94dc2c (diff) | |
Fix #4508 for abs, min, max (#4516)
* Fix #4508 for abs, min, max and the rest of the builtins.
None of these segfault now:
```odin
package bug
main :: proc() {
p :: proc() {}
// _ = len(p())
// _ = cap(p())
// _ = size_of(p())
// _ = align_of(p())
// T :: struct {}
// _ = offset_of(p())
// _ = offset_of(T, p())
// _ = offset_of(p(), foo)
// _ = offset_of(p(), "")
// _ = type_of(p())
// _ = type_info_of(p())
// _ = typeid_of(p())
// A: [4]int
// _ = swizzle(p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = swizzle(A, p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = complex(p(), p())
// _ = quaternion(p(), p(), p(), p())
// _ = quaternion(w=p(), x=p(), y=p(), z=p())
// _ = real(p())
// _ = imag(p())
// _ = jmag(p())
// _ = kmag(p())
// _ = conj(p())
// _ = expand_values(p())
// _ = min(p())
// _ = max(p())
// _ = abs(p())
// _ = clamp(p(), p(), p())
// _ = soa_zip(p())
// _ = soa_unzip(p())
}
```
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions