Skip to content

Commit

Permalink
Space out template commands for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 7, 2024
1 parent 1e6a0c7 commit 915751d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,12 @@ func (g Gen) emitCborUnmarshalInt64Field(w io.Writer, f Field) error {
return fmt.Errorf("wrong type for int64 field: %d", maj)
}
{{ .Name }} = {{ if .Pointer }}(*{{ .TypeName }})(&extraI){{ else }}{{ .TypeName }}(extraI){{ end }}
{{ if .Pointer }}}{{ end }}}
{{ if .Pointer }}
{{ .Name }} = (*{{ .TypeName }})(&extraI)
}
{{ else }}
{{ .Name }} = {{ .TypeName }}(extraI)
{{ end }}}
`)
}

Expand Down

0 comments on commit 915751d

Please sign in to comment.