]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: use appropriate return type for regoff
authorJoel Sing <joel@sing.id.au>
Fri, 28 Apr 2023 16:00:15 +0000 (02:00 +1000)
committerJoel Sing <joel@sing.id.au>
Fri, 28 Apr 2023 18:06:23 +0000 (18:06 +0000)
commite7af0e0cac6c65043335da6b6329f7141d2f68c5
tree318c099340f59cf001e1fbaad36dd77d24f2837f
parent69e66a1626eb585cd3e7261f8192590a931a4874
cmd/internal/obj/arm64: use appropriate return type for regoff

All of the callers of regoff cast the return value from uint32 to int32.
Instead, simply return int32 in the first place.

Change-Id: I43a672bb3143a71f4a37779ed8ae9adcda623ba4
Reviewed-on: https://go-review.googlesource.com/c/go/+/490355
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go