Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
checking if a unsigned int is >0 is a bad idea
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Feb 2017 09:06:10 +0000 (10:06 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Feb 2017 09:06:10 +0000 (10:06 +0100)
commita1c2fd1f61bd5733f3ddb126713ec5da13f1e440
treebfc19bff0cbd8d813509090b687bbd6f5aefdac7
parentb0de305a8b86a97e8a01c30114b94941efa7886c
checking if a unsigned int is >0 is a bad idea
1-2 = 4294967295 is positive !! check 1 > 2 instead
revalidate tesh, previous one might have been silently false
should please sanitizer
examples/msg/dht-kademlia/dht-kademlia.c
examples/msg/dht-kademlia/dht-kademlia.tesh