Browse Source

Build on 32 bit archs (ref #446)

Jakob Borg 11 years ago
parent
commit
9c99d65716
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protocol/protocol.go

+ 1 - 1
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
 	}