Skip to content

Bound checks for numbers #154

Closed
sobuur0/zink
#1
@clearloop

Description

@clearloop

Describe the feature

for example,

fn addition(x: i32) -> i32 {
  x + i32::MAX
}
  • Introduce bound checks for i32, u32, i64 and u64, use 'zink::revert!' on overflow
  • tests are required, introduce a new test in examples for doing it

Solution

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions