parent
9b9cfa7306
commit
4d5cce9882
13 changed files with 95 additions and 12 deletions
|
|
@ -858,6 +858,10 @@ proc inferStaticParam*(c: var TCandidate, lhs: PNode, rhs: BiggestInt): bool =
|
|||
if lhs[2].kind == nkIntLit:
|
||||
return inferStaticParam(c, lhs[1], rhs shl lhs[2].intVal)
|
||||
|
||||
of mAshrI:
|
||||
if lhs[2].kind == nkIntLit:
|
||||
return inferStaticParam(c, lhs[1], ashr(rhs, lhs[2].intVal))
|
||||
|
||||
of mUnaryMinusI:
|
||||
return inferStaticParam(c, lhs[1], -rhs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue