32 bit fixes (#10608)
This commit is contained in:
parent
304b1dd34b
commit
28394153ab
26 changed files with 165 additions and 135 deletions
|
|
@ -271,6 +271,10 @@ type
|
|||
# language; for interfacing with Objective C
|
||||
sfDiscardable, # returned value may be discarded implicitly
|
||||
sfOverriden, # proc is overriden
|
||||
sfCallSideLineinfo# A flag for template symbols to tell the
|
||||
# compiler it should use line information from
|
||||
# the calling side of the macro, not from the
|
||||
# implementation.
|
||||
sfGenSym # symbol is 'gensym'ed; do not add to symbol table
|
||||
|
||||
TSymFlags* = set[TSymFlag]
|
||||
|
|
@ -1265,7 +1269,10 @@ proc `$`*(x: TLockLevel): string =
|
|||
else: result = $int16(x)
|
||||
|
||||
proc `$`*(s: PSym): string =
|
||||
result = s.name.s & "@" & $s.id
|
||||
if s != nil:
|
||||
result = s.name.s & "@" & $s.id
|
||||
else:
|
||||
result = "<nil>"
|
||||
|
||||
proc newType*(kind: TTypeKind, owner: PSym): PType =
|
||||
new(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue