Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semfold: fix conversion folding #823

Merged

Commits on Aug 1, 2023

  1. semfold: make conversion folding more exhaustive

    The logic for to-integer and to-float conversions now uses exhaustive
    case statements, which fixes both an internal issue with unexpected
    literal-node types and conversions-to-char not having range checks.
    zerbina committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6508018 View commit details
    Browse the repository at this point in the history
  2. semfold: simplify conversion-to-integer folding logic

    Perform the range check in a single place. In addition, don't transition
    unsigned-valued nodes to `nkUIntLit` -- there's no reason to.
    zerbina committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    800fac5 View commit details
    Browse the repository at this point in the history
  3. tests: update the tfloats.nim test

    One of the issues encountered in the tests is now fixed. The test case
    for `1.23456789012345'f32` was already working previously.
    zerbina committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    638c550 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Configuration menu
    Copy the full SHA
    1ab9bb2 View commit details
    Browse the repository at this point in the history