fix warnings for deprecated low and high (#15291)

This commit is contained in:
Miran 2020-09-11 01:04:07 +02:00 • committed by GitHub
commit 6a621b35e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View file

@ -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