* Revert "fixes #20285; prevent oid time overflow at year 2038" This reverts commit dfcdb6ec2ab6a5fa53b6a99294a84fd122be8f8d. * increase time to 64 bits and clean up * add testcase * inline consts * add a changelog * fixes #20285; prevent oid time overflow at year 2038
This commit is contained in:
parent
ae3dd759c4
commit
db8a62d480
3 changed files with 26 additions and 26 deletions
|
|
@ -1,6 +1,15 @@
|
|||
discard """
|
||||
matrix: "--mm:refc; --mm:orc"
|
||||
"""
|
||||
|
||||
import std/oids
|
||||
|
||||
|
||||
block: # genOid
|
||||
let x = genOid()
|
||||
doAssert ($x).len == 24
|
||||
doAssert ($x).len == 32
|
||||
|
||||
block:
|
||||
let x = genOid()
|
||||
let y = parseOid(cstring($x))
|
||||
doAssert x == y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue