Fix usage on 32bit machines

This commit is contained in:
Evan Phoenix
2014-11-05 09:24:08 -08:00
parent 71e7762db5
commit 709382e9c1
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -110,7 +110,7 @@ func TestPathSliceStart(t *testing.T) {
assertPath(t, assertPath(t,
"$[123:]", "$[123:]",
buildPath( buildPath(
newMatchSliceFn(123, math.MaxInt64, 1), newMatchSliceFn(123, math.MaxInt32, 1),
)) ))
} }
@@ -134,7 +134,7 @@ func TestPathSliceStartStep(t *testing.T) {
assertPath(t, assertPath(t,
"$[123::7]", "$[123::7]",
buildPath( buildPath(
newMatchSliceFn(123, math.MaxInt64, 7), newMatchSliceFn(123, math.MaxInt32, 7),
)) ))
} }
@@ -150,7 +150,7 @@ func TestPathSliceStep(t *testing.T) {
assertPath(t, assertPath(t,
"$[::7]", "$[::7]",
buildPath( buildPath(
newMatchSliceFn(0, math.MaxInt64, 7), newMatchSliceFn(0, math.MaxInt32, 7),
)) ))
} }
+1 -1
View File
@@ -203,7 +203,7 @@ loop: // labeled loop for easy breaking
func (p *queryParser) parseSliceExpr() queryParserStateFn { func (p *queryParser) parseSliceExpr() queryParserStateFn {
// init slice to grab all elements // init slice to grab all elements
start, end, step := 0, math.MaxInt64, 1 start, end, step := 0, math.MaxInt32, 1
// parse optional start // parse optional start
tok := p.getToken() tok := p.getToken()