D24420: Compile error on conversion of std::time_t to long int
Yuri Chornoivan <[email protected]>
| Newsgroups | gmane.comp.kde.devel.games |
|---|---|
| Message-ID | <[email protected]> |
yurchor added a comment.
+1
Works fine in Linux.
INLINE COMMENTS
> kgrgame.cpp:119
> + const auto tse = std::chrono::system_clock::now().time_since_epoch();
> + const long int sead = std::chrono::duration_cast<std::chrono::seconds>(tse).count();
> + randomGen = new KRandomSequence (sead);
May it be the typo ("sead" -> "seed")?
REPOSITORY
R396 KGoldrunner
REVISION DETAIL
https://phabricator.kde.org/D24420
To: twighk, #kde_games
Cc: yurchor, kde-games-devel, krippendorf, hoetzel, hechenlan, bencreasy, vonreth