summaryrefslogtreecommitdiff
path: root/internal/repl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-25 16:44:01 +0200
committerPaul Buetow <paul@buetow.org>2026-03-25 16:44:01 +0200
commit6553891403e221134028dbdec3ce3101bf97cdfc (patch)
tree0180268a438ebbe2e2ee74fc45e3563fea8aae8d /internal/repl
parentfc77bacb493c4a82147bc3d4610ebabf8c85d555 (diff)
fix: Handle Value types correctly in RPN operations
- Updated HyperMultiply, HyperSubtract, HyperDivide, HyperPower, HyperModulo to use []Value and toNumber() for Value-to-float64 conversions - Updated HyperLog2, HyperLog10, HyperLn to use []Value and toNumber() - Fixed rpn.go: - Stack.Push() now uses NewNumberValue() for float64 values - GetCurrentStack() converts []Value to []float64 - show() output uses toNumber() for Value formatting - Variable handling uses NewNumberValue() when pushing - Fixed test files (operations_test.go): - Updated all Stack.Push() calls to use NewNumberValue() - Updated Pop() comparisons to use .Number() method - Fixed format specifiers for Errorf() calls All tests pass and the binary builds and runs correctly.
Diffstat (limited to 'internal/repl')
0 files changed, 0 insertions, 0 deletions