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

fix: (csl) Print float zero as 0.0, not 0 #3339

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

dk949
Copy link
Collaborator

@dk949 dk949 commented Oct 24, 2024

When printed as 0, type is assumed to be comptime_int which cannot be implicitly cast to float.

When printed as `0`, type is assumed to be `comptime_int` which cannot
be implicitly cast to float.
@dk949 dk949 added minor For minor PRs, easy and quick to review, quickly mergeable backend Compiler backend in xDSL labels Oct 24, 2024
@dk949 dk949 requested review from n-io and emmau678 October 24, 2024 13:51
@dk949 dk949 self-assigned this Oct 24, 2024
Copy link
Contributor

@emmau678 emmau678 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.04%. Comparing base (61bf632) to head (499699d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3339   +/-   ##
=======================================
  Coverage   90.04%   90.04%           
=======================================
  Files         446      446           
  Lines       56401    56403    +2     
  Branches     5417     5418    +1     
=======================================
+ Hits        50788    50790    +2     
  Misses       4183     4183           
  Partials     1430     1430           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dk949 dk949 merged commit ee518d8 into main Oct 24, 2024
14 checks passed
@dk949 dk949 deleted the david/csl-backend/float-print-fix branch October 24, 2024 13:59
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
When printed as `0`, type is assumed to be `comptime_int` which cannot
be implicitly cast to float.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Compiler backend in xDSL minor For minor PRs, easy and quick to review, quickly mergeable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants