Skip to content

Commit 190d3ba

Browse files
committed
fix wrong format char for Double
1 parent ddd0ace commit 190d3ba

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
@@ -359,7 +359,7 @@ proc unpack_double(vars: var seq[StructNode], ctx: StructContext) =
359359
var value = load_64f(ctx.buffer[ctx.offset..ctx.offset+7], ctx.byteOrder)
360360

361361
vars.add(newStructDouble(value))
362-
ctx.offset += TYPE_LENGTHS['f']
362+
ctx.offset += TYPE_LENGTHS['d']
363363

364364
proc unpack_string(vars: var seq[StructNode], ctx: StructContext) =
365365
var value: string

0 commit comments

Comments
 (0)