Tobias Klauser 7a85bfad8b unix: fix potential overflow in Mkdev on Linux
Daniel Swarbrick reports the following go vet warning after CL 50550:

  .../dev_linux.go:38: (major & 0xfffff000) (32 bits) too small for shift of 32

Fix it by converting major and minor to uint64 before the bitwise-and.

Change-Id: If37540be81f2c78a58fd5e5dcce7b770ce7b8afe
Reviewed-on: https://go-review.googlesource.com/63090
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-09-12 14:41:02 +00:00
2016-02-22 20:26:01 +00:00
2014-12-08 10:44:52 +11:00
2015-03-18 17:04:21 +00:00
2015-02-20 05:00:49 +00:00
2012-03-17 15:20:58 +11:00
2014-08-08 14:33:53 -07:00

This repository holds supplemental Go packages for low-level interactions with the operating system.

To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
No description provided
Readme BSD-3-Clause 16 MiB
Languages
Go 85.7%
Assembly 12.3%
Shell 1.8%
C 0.1%