Skip to content

Commit

Permalink
feat: uint default
Browse files Browse the repository at this point in the history
  • Loading branch information
qazxcdswe123 committed Oct 22, 2024
1 parent abe17f6 commit dd09b2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uint/uint.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ pub let max_value : UInt = 4294967295U
pub fn to_int64(self : UInt) -> Int64 {
self.to_uint64().reinterpret_as_int64()
}

pub fn UInt::default() -> UInt {
0
}

0 comments on commit dd09b2b

Please sign in to comment.