mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Replace usage of long long with u64/s64
This commit is contained in:
parent
7cac34c807
commit
18577f2527
7 changed files with 16 additions and 13 deletions
|
@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "porting.h"
|
||||
#include "util/string.h"
|
||||
#include "../exceptions.h"
|
||||
#include "../irrlichttypes.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
@ -428,7 +429,7 @@ bool serializeStructToString(std::string *outstr,
|
|||
bufpos += PADDING(bufpos, u64);
|
||||
nprinted = snprintf(sbuf + pos, sbuflen,
|
||||
is_unsigned ? "%llu, " : "%lli, ",
|
||||
(unsigned long long)*((u64 *)bufpos));
|
||||
*((u64 *)bufpos));
|
||||
bufpos += sizeof(u64);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -165,7 +165,7 @@ inline s32 mystoi(const std::string &s, s32 min, s32 max)
|
|||
|
||||
inline s64 stoi64(const std::string &s) {
|
||||
std::stringstream tmp(s);
|
||||
long long t;
|
||||
s64 t;
|
||||
tmp >> t;
|
||||
return t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue