aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ByteArrayOutputStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ByteArrayOutputStream.cpp')
-rw-r--r--Minecraft.World/ByteArrayOutputStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/ByteArrayOutputStream.cpp b/Minecraft.World/ByteArrayOutputStream.cpp
index 9296fe5e..a9f36e04 100644
--- a/Minecraft.World/ByteArrayOutputStream.cpp
+++ b/Minecraft.World/ByteArrayOutputStream.cpp
@@ -20,7 +20,7 @@ ByteArrayOutputStream::ByteArrayOutputStream(unsigned int size)
ByteArrayOutputStream::~ByteArrayOutputStream()
{
- if (buf.data != NULL)
+ if (buf.data != nullptr)
delete[] buf.data;
}
@@ -33,7 +33,7 @@ void ByteArrayOutputStream::write(unsigned int b)
if( count + 1 >= buf.length )
buf.resize( buf.length * 2 );
- buf[count] = (byte) b;
+ buf[count] = static_cast<byte>(b);
count++;
}