Skip to content

Commit

Permalink
refact(core): remove unnecessary explicit type
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Nov 9, 2023
1 parent 5112aa9 commit 88cbe18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/core/src/int.ri
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ extend int64 < Stringable {
}

extend int < Stringable {
public const MIN: int := @as(int, #if _x64_ int64.MIN #else int32.MIN #endif);
public const MAX: int := @as(int, #if _x64_ int64.MAX #else int32.MAX #endif);
public const MIN := @as(int, #if _x64_ int64.MIN #else int32.MIN #endif);
public const MAX := @as(int, #if _x64_ int64.MAX #else int32.MAX #endif);

#[inline]
public func bits() -> uint32 {
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/uint.ri
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ extend uint64 < Stringable {
}

extend uint < Stringable {
public const MAX: uint := @as(uint, #if _x64_ uint64.MAX #else uint32.MAX #endif);
public const MAX := @as(uint, #if _x64_ uint64.MAX #else uint32.MAX #endif);

#[inline]
public func bits() -> uint32 {
Expand Down

0 comments on commit 88cbe18

Please sign in to comment.