Closed jamesaross closed 4 years ago
@davidozog Interested to hear your thoughts?
@jdinan It seems like a good point to me, thanks for noticing that @jamesaross. We could state that all values other than 0 and 1 are invalid; but if it's an acceptable change at this point, I wouldn't mind going through and changing "1" to "nonzero" to avoid undefined behavior altogether. Could this be a doc edit?
Can we close this issue? https://github.com/naveen-rn/specification/pull/16/files Fixes this issue.
Thank you, @davidozog and @naveen-rn.
It seems to me that every peer-to-peer synchronization routine that includes a status array defines behavior for element values of 0 or 1, but not other values. Wouldn't it be better to define the behavior in terms of 0 and non-zero? This should be a simple change, repeated 12 times.
Relevant routines (plus C11 Generics):