Skip to content

Fix negative zero sign erasure - #222

Merged
jeparlefrancais merged 2 commits into
mainfrom
preserve-zero-sign
Oct 21, 2024
Merged

jeparlefrancais merged 2 commits into
mainfrom
preserve-zero-sign

Conversation

@jeparlefrancais

@jeparlefrancais jeparlefrancais commented Oct 21, 2024 •

Copy link
Copy Markdown
Contributor

Closes #216

This avoids the issue were the evaluator was replacing -0 results with only 0.

  • add entry to the changelog

@github-actions

Copy link
Copy Markdown

Coverage after merging preserve-zero-sign into main will be

87.04%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/nodes/expressions
   mod.rs76.29%100%75.68%76.43%138–140, 144–146, 150–152, 156–158, 162–164, 168–170, 186–188, 192–194, 270, 322–325, 327, 92–97
src/process/evaluator
   mod.rs88.01%100%98.18%86.80%102–103, 164, 176, 187, 198, 207–209, 217, 219–221, 223–224, 227, 239–241, 253–257, 261–262, 264–266, 306, 327, 341, 365, 368, 401, 407–408, 413, 427, 430, 448, 552, 556, 58–60, 71, 827, 88–89

@jeparlefrancais
jeparlefrancais merged commit 9cbf20d into main Oct 21, 2024
@jeparlefrancais
jeparlefrancais deleted the preserve-zero-sign branch October 21, 2024 03:26
jackTabsCode pushed a commit to jackTabsCode/darklua that referenced this pull request Oct 27, 2024
This avoids bugs were the evaluator was replacing `-0` results with
only `0`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve sign when evaluating zero

1 participant