Skip to content

Commit

Permalink
Fix field name.
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jan 6, 2025
1 parent fef4be6 commit 1471edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zstd/_generate/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1471edf

Please sign in to comment.