diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-01 14:36:38 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-01 14:36:38 -0400 |
| commit | 7996f8941081b29a2ef316c368b5f24c4d8bf79f (patch) | |
| tree | 02b4947e53800c2f9b00a533e0827d3f1e9687b5 /src/check_builtin.cpp | |
| parent | b70d2b156ad05d1c33a34ca9b1fedb6b2f888328 (diff) | |
Show quaternion arguments in `wxyz` order, instead of `xyzw`, in mismatched type error
This is in accordance with the other error and makes sense with how
quaternions are printed with `real`/`w` coming first, then the
imaginaries, which are the `ijk`/`xyz` parts.
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 7e043323a..f8bf4b0ce 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2990,7 +2990,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As gbString ty = type_to_string(xyzw[1].type); gbString tz = type_to_string(xyzw[2].type); gbString tw = type_to_string(xyzw[3].type); - error(call, "Mismatched types to 'quaternion', 'x=%s' vs 'y=%s' vs 'z=%s' vs 'w=%s'", tx, ty, tz, tw); + error(call, "Mismatched types to 'quaternion', 'w=%s' vs 'x=%s' vs 'y=%s' vs 'z=%s'", tw, tx, ty, tz); gb_string_free(tw); gb_string_free(tz); gb_string_free(ty); |