Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't call function with side effect twice in the same expression.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 2 Nov 2022 22:33:20 +0000 (23:33 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Nov 2022 07:53:54 +0000 (08:53 +0100)
commitcb3dc054a94868005896ba9485179c2ab5280876
tree0b00cf3cdf3fa4e2ee03c5c2d23cbdedbfce84a2
parenta2c92cf8d761287722e9111a5d077e9dc00dbfbb
Don't call function with side effect twice in the same expression.

The evaluation order is undecided and may give different results (e.g. using clang vs. gcc).
src/kernel/actor/CommObserver.cpp