Skip to content

Bitwidth not enforced, oveflow is a bit awkward #55

@VegaDeftwing

Description

@VegaDeftwing

Describe the bug
Overflow not handled elegantly

To Reproduce
Steps to reproduce the behavior:

  1. Set width to a low amount eg: :width 8
  2. Add two numbers that total higher than the max value for that width eg: 0xff + 1

Expected behavior
Overflow should probably be truncated, to resemble the behavior in most programming languages and provide a warning

Screenshots
image

Version:

  • 0.43

Desktop (please complete the following information):

  • OS: Arch Linux

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions