Skip to content

Commit db95d14

Browse files
committed
Fix spurious "extern C" modifier generation
Invalidating the first element of the slice works better than setting it to zero
1 parent ccba61a commit db95d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino.cc/builder/ctags/ctags_has_issues.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (p *CTagsParser) FindCLinkageLines(tags []*types.CTag) map[string][]int {
246246
if err == nil {
247247
defer file.Close()
248248

249-
lines[tag.Filename] = append(lines[tag.Filename], 0)
249+
lines[tag.Filename] = append(lines[tag.Filename], -1)
250250

251251
scanner := bufio.NewScanner(file)
252252

0 commit comments

Comments
 (0)