tests: Fix accidental trunction from int to bool #14093

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:truncation-from-int-to-bool changing 1 files +1 −1
  1. practicalswift commented at 2:57 PM on August 28, 2018: contributor

    Fix accidental trunction from int to bool.

    Context: #14086 (comment)

  2. fanquake added the label Tests on Aug 28, 2018
  3. in src/test/scheduler_tests.cpp:57 in 7957b7bde7 outdated
      53 | @@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(manythreads)
      54 |  
      55 |      boost::mutex counterMutex[10];
      56 |      int counter[10] = { 0 };
      57 | -    FastRandomContext rng(42);
      58 | +    FastRandomContext rng(true);
    


    MarcoFalke commented at 3:24 PM on August 28, 2018:

    please use named arguments for literal primitive types. {/* fDeterministic */ true}


    practicalswift commented at 3:43 PM on August 28, 2018:

    Good point! Fixed! :-)

  4. tests: Fix accidental trunction from int to bool 1cc58978b7
  5. practicalswift force-pushed on Aug 28, 2018
  6. practicalswift commented at 7:33 PM on August 28, 2018: contributor

    @MarcoFalke Thanks for reviewing. Feedback addressed. Please re-review :-)

  7. MarcoFalke merged this on Aug 29, 2018
  8. MarcoFalke closed this on Aug 29, 2018

  9. MarcoFalke referenced this in commit 13887f41f2 on Aug 29, 2018
  10. practicalswift deleted the branch on Apr 10, 2021
  11. Munkybooty referenced this in commit a14593b6fa on Jun 14, 2021
  12. PastaPastaPasta referenced this in commit 502f2a0c27 on Jun 27, 2021
  13. PastaPastaPasta referenced this in commit b415c68084 on Jun 28, 2021
  14. PastaPastaPasta referenced this in commit b1a59e9977 on Jun 29, 2021
  15. PastaPastaPasta referenced this in commit 8d951c4222 on Jun 29, 2021
  16. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me