Skip to content

Commit

Permalink
Fix copy arguments for strict aligned architectures
Browse files Browse the repository at this point in the history
Small typo. In practice only affects arm32 and arm64 as I doubt there are users
of other architectures around.
  • Loading branch information
haesbaert committed Oct 27, 2023
1 parent d8a1377 commit 8a67c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/auditbeat/tracing/int_aligned.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var errBadSize = errors.New("bad size for integer")

func copyInt(dst unsafe.Pointer, src unsafe.Pointer, len uint8) error {
copy((*(*[maxIntSizeBytes]byte)(src))[:len], (*(*[maxIntSizeBytes]byte)(src))[:len])
copy((*(*[maxIntSizeBytes]byte)(dst))[:len], (*(*[maxIntSizeBytes]byte)(src))[:len])
return nil
}

Expand Down

0 comments on commit 8a67c32

Please sign in to comment.