added $ for oids
This commit is contained in:
parent
2555e500b6
commit
eb72857ea2
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Nimrod's Runtime Library
|
# Nimrod's Runtime Library
|
||||||
# (c) Copyright 2012 Andreas Rumpf
|
# (c) Copyright 2013 Andreas Rumpf
|
||||||
#
|
#
|
||||||
# See the file "copying.txt", included in this
|
# See the file "copying.txt", included in this
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
|
|
@ -52,6 +52,10 @@ proc oidToString*(oid: TOid, str: cstring) =
|
||||||
inc(i)
|
inc(i)
|
||||||
str[24] = '\0'
|
str[24] = '\0'
|
||||||
|
|
||||||
|
proc `$`*(oid: TOid): string =
|
||||||
|
result = newString(25)
|
||||||
|
oidToString(oid, result)
|
||||||
|
|
||||||
var
|
var
|
||||||
incr: int
|
incr: int
|
||||||
fuzz: int32
|
fuzz: int32
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue