Skip to content

Commit 63a91ab

Browse files
author
Huy Doan
authored
Merge pull request #1 from abeaumont/fix-get-uint
fix casting in getUInt
2 parents d1b7fe0 + 63fd640 commit 63a91ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

struct.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc getInt*(node: StructNode): int32 {.noSideEffect, inline.} =
113113
node.num.int32
114114
115115
proc getUInt*(node: StructNode): uint32 {.noSideEffect, inline.} =
116-
node.num.uint16
116+
node.num.uint32
117117
118118
proc getQuad*(node: StructNode): int64 {.noSideEffect, inline.} =
119119
node.num.int64

0 commit comments

Comments
 (0)