Skip to content

Commit

Permalink
sema: fix cross-transpilation is not imitates the target architecture…
Browse files Browse the repository at this point in the history
… for array types
  • Loading branch information
mertcandav committed Mar 9, 2024
1 parent 1fcd75d commit dd5f78c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/jule/sema/type.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,9 @@ impl TypeChecker {
if n < 0 {
self.push_err(decl.elem.token, LogMsg.ArraySizeIsNeg)
ret nil
} else if types::BIT_SIZE != 64 && f64(n) > types::max(PrimKind.Int) {
self.push_err(decl.size.token, LogMsg.OverflowLimits)
ret nil
}
}

Expand Down

0 comments on commit dd5f78c

Please sign in to comment.