We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
newStructInt
1 parent 6c99471 commit 764e7b0Copy full SHA for 764e7b0
struct.nim
@@ -74,9 +74,9 @@ proc newStructBool*(b: bool): StructNode =
74
result.kind = StructBool
75
result.bval = b
76
77
-proc newStructInt*(i: BiggestInt): StructNode =
+proc newStructInt*[T: uint|int|int16|uint16|int32|uint32|int64|uint64|BiggestInt](i: T): StructNode =
78
result.kind = StructInt
79
- result.num = i
+ result.num = i.BiggestInt
80
81
proc newStructFloat*(d: BiggestFloat): StructNode =
82
result.kind = StructFloat
0 commit comments