Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit 647dd92

Browse files
Add files via upload
1 parent 1e8ac74 commit 647dd92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polyglotbook.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ constexpr union {
363363
// polyglotbook.cpp start
364364

365365
PolyglotBook::PolyglotBook() : polyboard{} {
366-
std::srand(static_cast<unsigned int>(std::time(nullptr)));
366+
std::srand((unsigned int)(std::time(nullptr)));
367367
}
368368

369369
PolyglotBook::~PolyglotBook() {
@@ -521,7 +521,7 @@ int PolyglotBook::probe(const bool pick_best) {
521521
std::size_t PolyglotBook::find_first(const std::uint64_t key) {
522522
this->seekg(0, std::ios::end); // Move pointer to end, so tellg() gets file's size
523523

524-
std::size_t low = 0, high = static_cast<std::size_t>(this->tellg()) / sizeof(Entry) - 1;
524+
std::size_t low = 0, high = std::size_t(this->tellg()) / sizeof(Entry) - 1;
525525
Entry e{};
526526

527527
while (low < high && this->good()) {

0 commit comments

Comments
 (0)