Build on 32 bit archs (ref #446)

This commit is contained in:
Jakob Borg 2014-07-28 15:25:34 +02:00
parent 5b9469eed3
commit 9c99d65716

View File

@ -129,7 +129,7 @@ func NewConnection(nodeID NodeID, reader io.Reader, writer io.Writer, receiver M
cr := &countingReader{Reader: reader}
cw := &countingWriter{Writer: writer}
compThres := 1<<32 - 1 // compression disabled
compThres := 1<<31 - 1 // compression disabled
if compress {
compThres = 128 // compress messages that are 128 bytes long or larger
}