Skip to content

Commit

Permalink
hacky fix for #181
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Aug 10, 2020
1 parent ac3a884 commit 39ca275
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
32 changes: 16 additions & 16 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<tbody><tr>
<th>Go</th>
<th>34</th>
<th>7907</th>
<th>1292</th>
<th>332</th>
<th>6283</th>
<th>1308</th>
<th>316792</th>
<th>7912</th>
<th>1293</th>
<th>333</th>
<th>6286</th>
<th>1309</th>
<th>316903</th>
</tr><tr>
<th>Java</th>
<th>23</th>
Expand All @@ -39,12 +39,12 @@
</tr><tr>
<th>Markdown</th>
<th>8</th>
<th>1067</th>
<th>246</th>
<th>1079</th>
<th>250</th>
<th>0</th>
<th>821</th>
<th>829</th>
<th>0</th>
<th>42742</th>
<th>43375</th>
</tr><tr>
<th>Python</th>
<th>8</th>
Expand Down Expand Up @@ -553,11 +553,11 @@
<tfoot><tr>
<th>Total</th>
<th>160</th>
<th>24098</th>
<th>2721</th>
<th>1509</th>
<th>19868</th>
<th>2213</th>
<th>1725778</th>
<th>24115</th>
<th>2726</th>
<th>1510</th>
<th>19879</th>
<th>2214</th>
<th>1726522</th>
</tr></tfoot>
</table></body></html>
5 changes: 5 additions & 0 deletions processor/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ func codeState(
langFeatures LanguageFeature,
digest *hash.Hash,
) (int, int64, []byte, [][]byte, bool) {
// Hacky fix to https://github.com/boyter/scc/issues/181
if endPoint > len(fileJob.Content) {
endPoint--
}

for i := index; i < endPoint; i++ {
curByte := fileJob.Content[i]
index = i
Expand Down

0 comments on commit 39ca275

Please sign in to comment.