mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
This commit is contained in:
parent
d6ec138710
commit
d63f79325f
308 changed files with 5371 additions and 5379 deletions
|
|
@ -78,7 +78,7 @@ void DataOutputStream::writeByte(byte a)
|
|||
//v - a double value to be written.
|
||||
void DataOutputStream::writeDouble(double a)
|
||||
{
|
||||
__int64 bits = Double::doubleToLongBits( a );
|
||||
int64_t bits = Double::doubleToLongBits( a );
|
||||
|
||||
writeLong( bits );
|
||||
// TODO 4J Stu - Error handling?
|
||||
|
|
@ -116,7 +116,7 @@ void DataOutputStream::writeInt(int a)
|
|||
//In no exception is thrown, the counter written is incremented by 8.
|
||||
//Parameters:
|
||||
//v - a long to be written.
|
||||
void DataOutputStream::writeLong(__int64 a)
|
||||
void DataOutputStream::writeLong(int64_t a)
|
||||
{
|
||||
stream->write( (a >> 56) & 0xff );
|
||||
stream->write( (a >> 48) & 0xff );
|
||||
|
|
@ -178,7 +178,7 @@ void DataOutputStream::writeBoolean(bool b)
|
|||
{
|
||||
stream->write( b ? (byte)1 : (byte)0 );
|
||||
// TODO 4J Stu - Error handling?
|
||||
written += 1;
|
||||
written += 1;
|
||||
}
|
||||
|
||||
//Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.
|
||||
|
|
@ -220,7 +220,7 @@ void DataOutputStream::writeUTF(const wstring& str)
|
|||
byteArray bytearr(utflen+2);
|
||||
|
||||
bytearr[count++] = (byte) ((utflen >> 8) & 0xFF);
|
||||
bytearr[count++] = (byte) ((utflen >> 0) & 0xFF);
|
||||
bytearr[count++] = (byte) ((utflen >> 0) & 0xFF);
|
||||
|
||||
int i=0;
|
||||
for (i=0; i<strlen; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue