odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

Identity quaternion shows wrong value in debugger #3724

Closed brianpmaher closed 3 weeks ago

brianpmaher commented 3 weeks ago

Context

Identity quaternion shows 0, 0, 0, 0 values for imag, jmag, kmag, real in debugger. Printing the quaternion displays correct values.

Odin: dev-2024-06:1945218f6 OS: Windows 10 Professional (version: 22H2), build 19045.4412 CPU: AMD Ryzen 9 3900X 12-Core Processor RAM: 65435 MiB Backend: LLVM 17.0.1

image

Expected Behavior

Should display value of 1 in real position in debugger.

Current Behavior

Shows 0 value in real position in debugger.

Steps to Reproduce

  1. Using core:math/linalg assign a variable to the value of an identity quaternion such as quaternion128(1).
  2. Build the program in debug mode -debug
  3. Open in debugger and set a watch for the variable