Skip to content

Commit

Permalink
sema: minor improvement for rune literal handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 28, 2024
1 parent 84acd3c commit 3c1aec1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/jule/sema/eval.jule
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ impl Eval {
Constant: Const.NewI64(i64(r)),
}

isAscii := lit::IsAscii(r)
if isAscii {
if r <= 255 {
data.Kind = primU8 // Byte
} else {
data.Kind = primI32 // Rune
Expand Down

0 comments on commit 3c1aec1

Please sign in to comment.