equal
deleted
inserted
replaced
1127 |
1127 |
1128 if (cycles != prevCycles || takeIndex != prevTakeIndex) { |
1128 if (cycles != prevCycles || takeIndex != prevTakeIndex) { |
1129 final int len = items.length; |
1129 final int len = items.length; |
1130 // how far takeIndex has advanced since the previous |
1130 // how far takeIndex has advanced since the previous |
1131 // operation of this iterator |
1131 // operation of this iterator |
1132 long dequeues = (cycles - prevCycles) * len |
1132 long dequeues = (long) (cycles - prevCycles) * len |
1133 + (takeIndex - prevTakeIndex); |
1133 + (takeIndex - prevTakeIndex); |
1134 |
1134 |
1135 // Check indices for invalidation |
1135 // Check indices for invalidation |
1136 if (invalidated(lastRet, prevTakeIndex, dequeues, len)) |
1136 if (invalidated(lastRet, prevTakeIndex, dequeues, len)) |
1137 lastRet = REMOVED; |
1137 lastRet = REMOVED; |