introduce internal Int128 type, use it to fix case stmt checks (#11652)
* initial version of int128 * use int128 in case stmt * fixes #11552
This commit is contained in:
parent
176eaf5c90
commit
7d5d9f7703
6 changed files with 550 additions and 11 deletions
|
|
@ -877,7 +877,7 @@ proc semCase(c: PContext, n: PNode; flags: TExprFlags): PNode =
|
|||
pushCaseContext(c, n)
|
||||
n.sons[0] = semExprWithType(c, n.sons[0])
|
||||
var chckCovered = false
|
||||
var covered: BiggestInt = 0
|
||||
var covered: Int128 = toInt128(0)
|
||||
var typ = commonTypeBegin
|
||||
var hasElse = false
|
||||
let caseTyp = skipTypes(n.sons[0].typ, abstractVar-{tyTypeDesc})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue