mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
* Revert "fixes #20285; prevent oid time overflow at year 2038"
This reverts commit dfcdb6ec2a.
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user