mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
Rather than directly casting between types of different sizes, use an explicit copy in a helper function. Fixes golang/go#35106 Change-Id: I2293eb38fa53205ce069e2e5405262294c9ad412 Reviewed-on: https://go-review.googlesource.com/c/sys/+/202820 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
4.3 KiB
4.3 KiB