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").
{
size_t buff_size = comm->comm.src_buff_size;
/* If there is no data to be copy then return */
- if (!comm->comm.src_buff || !comm->comm.dst_buff || comm->comm.copied == 1)
+ if (!comm->comm.src_buff || !comm->comm.dst_buff || comm->comm.copied)
return;
XBT_DEBUG("Copying comm %p data from %s (%p) -> %s (%p) (%zu bytes)",
void *dst_buff;
size_t src_buff_size;
size_t *dst_buff_size;
- int copied:1; /* whether the data were already copied */
+ unsigned int copied:1; /* whether the data were already copied */
void* src_data; /* User data associated to communication */
void* dst_data;