Apparently Windows does not handle 'long' the same as Unix.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-08-18 10:30:58 +02:00
parent 86d6d5a9cb
commit 2d4d3d8856
12 changed files with 37 additions and 37 deletions

View File

@@ -10,7 +10,7 @@ namespace Porygon::Utilities {
_rng.seed(new_seed);
}
static inline long Get() {
static inline int64_t Get() {
return _rng.operator()();
}
};

View File

@@ -13,7 +13,7 @@ namespace Porygon::Utilities{
private:
static std::wstring_convert<std::codecvt_utf8_utf16<char16_t, 0x10ffff, std::little_endian>, char16_t> to_16;
public:
inline static std::u16string IntToString(long const &i) {
inline static std::u16string IntToString(int64_t const &i) {
return to_16.from_bytes(std::to_string(i));
}
inline static std::u16string FloatToString(double const &i) {