From 1471edf4c6716f01721c1c501ad9ac1647e5a7a9 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 6 Jan 2025 10:33:52 +0100 Subject: [PATCH] Fix field name. --- zstd/_generate/gen.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zstd/_generate/gen.go b/zstd/_generate/gen.go index c872cb105..1554543b1 100644 --- a/zstd/_generate/gen.go +++ b/zstd/_generate/gen.go @@ -157,7 +157,7 @@ func (o options) generateBody(name string, executeSingleTriple func(ctx *execute Load(br.Field("value"), brValue) Load(br.Field("bitsRead"), brBitsRead) Load(br.Field("in").Base(), brPointer) - Load(br.Field("off"), brOffset) + Load(br.Field("cursor"), brOffset) ADDQ(brOffset, brPointer) // Add current offset to read pointer. MOVQ(brPointer, brPointerStash) } @@ -438,7 +438,7 @@ func (o options) generateBody(name string, executeSingleTriple func(ctx *execute br := Dereference(Param("br")) Store(brValue, br.Field("value")) Store(brBitsRead.As8(), br.Field("bitsRead")) - Store(brOffset, br.Field("off")) + Store(brOffset, br.Field("cursor")) if !o.useSeqs { Comment("Update the context")