Commit c4eefc3 1 parent ac0b42f commit c4eefc3 Copy full SHA for c4eefc3
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -344,10 +344,9 @@ func (cm *CoverageMapBytecodeData) update(coverageMap *CoverageMapBytecodeData)
344
344
return true , nil
345
345
}
346
346
347
- // Update each byte which represents a position in the bytecode which was covered. We ignore any size
348
- // differences as init bytecode can have arbitrary length arguments appended.
347
+ // Update each byte which represents a position in the bytecode which was covered.
349
348
changed := false
350
- for i := 0 ; i < len (cm .executedFlags ) || i < len (coverageMap .executedFlags ); i ++ {
349
+ for i := 0 ; i < len (cm .executedFlags ) && i < len (coverageMap .executedFlags ); i ++ {
351
350
if cm .executedFlags [i ] == 0 && coverageMap .executedFlags [i ] != 0 {
352
351
cm .executedFlags [i ] = 1
353
352
changed = true
You can’t perform that action at this time.
0 commit comments