sigmatch: use boolean algebra

This commit is contained in:
Andreas Rumpf
2019-06-02 08:35:09 +02:00
parent 9ee2ecf0a6
commit c02320e230

View File

@@ -1902,7 +1902,7 @@ proc userConvMatch(c: PContext, m: var TCandidate, f, a: PType,
result = newDeref(result)
inc(m.convMatches)
if m.genericConverter == false:
if not m.genericConverter:
m.genericConverter = srca == isGeneric or destIsGeneric
return result