diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-30 20:00:32 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-30 20:00:32 -0700 |
commit | e66a408e38849107a3d35a317ff6f2b23dcaeead (patch) | |
tree | 2e2abb9c80997c0565fddce4e7e271d901839b26 /Source/Randomizer.cpp | |
parent | 2ec4950107245df8f01860a3289b7731753933cd (diff) | |
download | witness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.tar.gz witness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.tar.bz2 witness-tutorializer-e66a408e38849107a3d35a317ff6f2b23dcaeead.zip |
RM static cast, lower warning level, add homebrew RNG
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r-- | Source/Randomizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index c3c084c..83f5571 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp | |||
@@ -23,7 +23,7 @@ | |||
23 | template <class T> | 23 | template <class T> |
24 | int find(const std::vector<T> &data, T search, size_t startIndex = 0) { | 24 | int find(const std::vector<T> &data, T search, size_t startIndex = 0) { |
25 | for (size_t i=startIndex ; i<data.size(); i++) { | 25 | for (size_t i=startIndex ; i<data.size(); i++) { |
26 | if (data[i] == search) return static_cast<int>(i); | 26 | if (data[i] == search) return i; |
27 | } | 27 | } |
28 | std::cout << "Couldn't find " << search << " in data!" << std::endl; | 28 | std::cout << "Couldn't find " << search << " in data!" << std::endl; |
29 | exit(-1); | 29 | exit(-1); |