@cryptotaxi247 / kubo / commits / 23616af31

fix gateway_test on 32bit oses

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Mar 4, 2019 at 19:35 UTC 23616af3144e00d4627808f0338ed99df4b827ad
1 file changed +2 -2
core/corehttp/gateway_test.go
+2 -2
@@ -4,7 +4,6 @@ import (
4 "context"
5 "errors"
6 "io/ioutil"
7 - "math"
7 "net/http"
8 "net/http/httptest"
9 "strings"
@@ -41,7 +40,8 @@ func (m mockNamesys) Resolve(ctx context.Context, name string, opts ...nsopts.Re
40 }
41 depth := cfg.Depth
42 if depth == nsopts.UnlimitedDepth {
44 - depth = math.MaxUint64
43 + // max uint
44 + depth = ^uint(0)
45 }
46 for strings.HasPrefix(name, "/ipns/") {
47 if depth <= 0 {