diff options
author | Araq <rumpf_a@web.de> | 2013-10-31 22:30:59 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-10-31 22:30:59 +0100 |
commit | eb72857ea229aa1a65f9dc0962840ede2a9e68ed (patch) | |
tree | f9028763e62e1d9fd5faee9aeb334efb54d46ca6 | |
parent | 2555e500b6fe110f3d494568d6303e24ff59ab3f (diff) | |
download | Nim-eb72857ea229aa1a65f9dc0962840ede2a9e68ed.tar.gz |
added $ for oids
-rw-r--r-- | lib/pure/oids.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pure/oids.nim b/lib/pure/oids.nim index 0fd1d8cd2..fbe0dda95 100644 --- a/lib/pure/oids.nim +++ b/lib/pure/oids.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2012 Andreas Rumpf +# (c) Copyright 2013 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -52,6 +52,10 @@ proc oidToString*(oid: TOid, str: cstring) = inc(i) str[24] = '\0' +proc `$`*(oid: TOid): string = + result = newString(25) + oidToString(oid, result) + var incr: int fuzz: int32 |