Puzzle - RPL and others
|
05-10-2021, 08:23 PM
Post: #37
|
|||
|
|||
RE: Puzzle - RPL and others
Another private message from Albert Chan, another bug uncovered ... and now fixed. This one is very subtle.
Before: Code: bitset_t digit_bitset = 1 << (digit - 1); Code: bitset_t digit_bitset = ((bitset_t) 1) << (digit - 1); But that's the benefit of having an alternative implementation to compare to, since it's quite hard to verify the results by hand: discrepancies between them uncover bugs in one or the other. Thank you for not simply believing my results! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)