Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A boolean should be unsigned if you want to compare it to 1.
authorChristophe Thiéry <christopho128@gmail.com>
Mon, 4 Jun 2012 12:59:13 +0000 (14:59 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Mon, 4 Jun 2012 13:00:57 +0000 (15:00 +0200)
commit1377c28e7b9f315616ee6fddc6baa755e0380e75
treecc70991247f03658ed72f5cf94ba727785784726
parent2e571a748f951d94a0d368237dd4875da54cea03
A boolean should be unsigned if you want to compare it to 1.

Without the "unsigned" keyword, the boolean could be either 0 or -1.
This made the Lua tests crash because of a condition "copied == 1".
This bug was introduced by commit 13b40eda ("make it clear that this is a
boolean field").
src/simix/smx_network.c
src/simix/smx_private.h