You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example code in README.md aims to test the += operator of safe_umx, but because it adds 42 to 0, it would also pass if the operator was (incorrectly) implemented as an assignment instead of an addition (as zero is the identity element of addition).
The fix would be to initialize data2 to a non-zero value.
The example code in README.md aims to test the
+=
operator ofsafe_umx
, but because it adds 42 to 0, it would also pass if the operator was (incorrectly) implemented as an assignment instead of an addition (as zero is the identity element of addition).The fix would be to initialize
data2
to a non-zero value.bsl/README.md
Lines 139 to 144 in 6509cff
The text was updated successfully, but these errors were encountered: