Cross compiling for GOARCH=arm int overflow

We use the constant 256<<30 to initialize the buffer size in ristretto.

In Go, the size of int defaults to the word size of a machine. So on a 32 bit ARM machine, int would be 32 bits. It’s clear that 256 <<30 overflows that.

The fix should be architecture specific files containing architecture specific constants. So, this is a bug. I’m filing as a bug.

Tagging @martinmr

Related Issues (Badger): Fix badger builds on 32 bit machines