@@ -376,8 +376,8 @@ func (v *VM) run() {
376
376
377
377
var lowIdx int64
378
378
if low != UndefinedValue {
379
- if low , ok := low .(* Int ); ok {
380
- lowIdx = low .Value
379
+ if lowInt , ok := low .(* Int ); ok {
380
+ lowIdx = lowInt .Value
381
381
} else {
382
382
v .err = fmt .Errorf ("invalid slice index type: %s" ,
383
383
low .TypeName ())
@@ -391,8 +391,8 @@ func (v *VM) run() {
391
391
var highIdx int64
392
392
if high == UndefinedValue {
393
393
highIdx = numElements
394
- } else if high , ok := high .(* Int ); ok {
395
- highIdx = high .Value
394
+ } else if highInt , ok := high .(* Int ); ok {
395
+ highIdx = highInt .Value
396
396
} else {
397
397
v .err = fmt .Errorf ("invalid slice index type: %s" ,
398
398
high .TypeName ())
@@ -428,8 +428,8 @@ func (v *VM) run() {
428
428
var highIdx int64
429
429
if high == UndefinedValue {
430
430
highIdx = numElements
431
- } else if high , ok := high .(* Int ); ok {
432
- highIdx = high .Value
431
+ } else if highInt , ok := high .(* Int ); ok {
432
+ highIdx = highInt .Value
433
433
} else {
434
434
v .err = fmt .Errorf ("invalid slice index type: %s" ,
435
435
high .TypeName ())
@@ -465,8 +465,8 @@ func (v *VM) run() {
465
465
var highIdx int64
466
466
if high == UndefinedValue {
467
467
highIdx = numElements
468
- } else if high , ok := high .(* Int ); ok {
469
- highIdx = high .Value
468
+ } else if highInt , ok := high .(* Int ); ok {
469
+ highIdx = highInt .Value
470
470
} else {
471
471
v .err = fmt .Errorf ("invalid slice index type: %s" ,
472
472
high .TypeName ())
@@ -502,8 +502,8 @@ func (v *VM) run() {
502
502
var highIdx int64
503
503
if high == UndefinedValue {
504
504
highIdx = numElements
505
- } else if high , ok := high .(* Int ); ok {
506
- highIdx = high .Value
505
+ } else if highInt , ok := high .(* Int ); ok {
506
+ highIdx = highInt .Value
507
507
} else {
508
508
v .err = fmt .Errorf ("invalid slice index type: %s" ,
509
509
high .TypeName ())
0 commit comments