Use unsigned values for termios setting

This allows the last (most significant) bit to be set without
overflow errors. The error becomes visible after adding the
CRTSCTS constant on linux/386:

   const tcCRTSCTS uint = 0x80000000
This commit is contained in:
Cristian Maglie
2016-10-20 23:55:06 +02:00
parent 7178181a28
commit 9398f35b69
6 changed files with 23 additions and 23 deletions

View File

@@ -8,6 +8,6 @@ package serial // import "go.bug.st/serial.v1"
// termios manipulation functions
func termiosMask(data int) uint64 {
func termiosMask(data uint) uint64 {
return uint64(data)
}