diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-01-17 00:03:35 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-03-04 17:26:19 +0100 |
| commit | c4e45d509a25ad1d341a5519606ddff59bfeb64e (patch) | |
| tree | b39b1232206f2d4a38eb02b4477cb7c6f10f8a89 /core/encoding/cbor | |
| parent | c1cf6c1a95bb489525e329280be735d7a5ce966b (diff) | |
encoding/cbor: adhere to new quaternion rules of master
Diffstat (limited to 'core/encoding/cbor')
| -rw-r--r-- | core/encoding/cbor/unmarshal.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/cbor/unmarshal.odin b/core/encoding/cbor/unmarshal.odin index 0acb48083..eec999c12 100644 --- a/core/encoding/cbor/unmarshal.odin +++ b/core/encoding/cbor/unmarshal.odin @@ -903,9 +903,9 @@ _assign_float :: proc(val: any, f: $T) -> bool { case complex64: dst = complex(f32(f), 0) case complex128: dst = complex(f64(f), 0) - case quaternion64: dst = quaternion(f16(f), 0, 0, 0) - case quaternion128: dst = quaternion(f32(f), 0, 0, 0) - case quaternion256: dst = quaternion(f64(f), 0, 0, 0) + case quaternion64: dst = quaternion(w=f16(f), x=0, y=0, z=0) + case quaternion128: dst = quaternion(w=f32(f), x=0, y=0, z=0) + case quaternion256: dst = quaternion(w=f64(f), x=0, y=0, z=0) case: return false } |