Skip to content

terminal: fix 32 bit build#4

Merged
buger merged 1 commit intobuger:masterfrom
philips:fix-32-bit
Aug 8, 2016
Merged

terminal: fix 32 bit build#4
buger merged 1 commit intobuger:masterfrom
philips:fix-32-bit

Conversation

@philips
Copy link
Contributor

@philips philips commented Jan 5, 2016

I was trying to use vctl which uses this library on a 32 bit machine
(Linux 3.14.0 armv7l) and failed to build.

../../buger/goterm/terminal.go:81: constant 2147483648 overflows int
../../buger/goterm/terminal.go:85: constant 2147483648 overflows int

This will cut the constant in half on 32 bit systems. I don't know if
this is right but it seemed to work. Happy to fix up the patch further,
I just don't understand what PCT is for.

I was trying to use vctl which uses this library on a 32 bit machine
(Linux 3.14.0 armv7l) and failed to build.

    ../../buger/goterm/terminal.go:81: constant 2147483648 overflows int
    ../../buger/goterm/terminal.go:85: constant 2147483648 overflows int

This will cut the constant in half on 32 bit systems. I don't know if
this is right but it seemed to work. Happy to fix up the patch further,
I just don't understand what PCT is for.
@buger buger merged commit d281585 into buger:master Aug 8, 2016
@gaoyifan gaoyifan mentioned this pull request Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants