fix warnings for deprecated low and high (#15291)
This commit is contained in:
parent
625edf6a98
commit
6a621b35e7
3 changed files with 13 additions and 13 deletions
|
|
@ -1356,8 +1356,8 @@ proc newType*(kind: TTypeKind, owner: PSym): PType =
|
|||
writeStackTrace()
|
||||
|
||||
proc mergeLoc(a: var TLoc, b: TLoc) =
|
||||
if a.k == low(a.k): a.k = b.k
|
||||
if a.storage == low(a.storage): a.storage = b.storage
|
||||
if a.k == low(typeof(a.k)): a.k = b.k
|
||||
if a.storage == low(typeof(a.storage)): a.storage = b.storage
|
||||
a.flags.incl b.flags
|
||||
if a.lode == nil: a.lode = b.lode
|
||||
if a.r == nil: a.r = b.r
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue