Copy link
@stweil

stweil Sep 8, 2016

Contributor

I'd cast l_tcp->numlayers instead of the result of the addition. Otherwise the addition could overflow (resulting in 0). I admit that the chances that this will happen are very low. Or do we know that l_tcp->numlayers can never reach UINT32_MAX?