[vlc-devel] [PATCH 1/6] executor: introduce new executor API

Rémi Denis-Courmont remi at remlab.net
Mon Sep 7 19:23:24 CEST 2020


Le maanantaina 7. syyskuuta 2020, 20.13.22 EEST Romain Vimont a écrit :
> > > +    /* Either both prev and next are set, either both are NULL */
> > > +    assert(!!runnable->node.prev == !!runnable->node.next);
> > 
> > You don't need double negation here.
> 
> I could write it differently, but I couldn't just remove the double
> negation (in case prev and next are both non-NULL, but prev != next).

Sure you need a negation, but I don't see why it needs to be doubled.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list