From 9c99d65716b61c51b39e092bec6fc698958b24d6 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 28 Jul 2014 15:25:34 +0200 Subject: [PATCH] Build on 32 bit archs (ref #446) --- protocol/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/protocol.go b/protocol/protocol.go index 6c5c4cba9..19a144ec6 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -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 }