Skip to content

Commit d2de34d

Browse files
committed
[nxoc-parser] Avoid unnecessary cast
1 parent 2da8bc8 commit d2de34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vulkan-renderer/io/nxoc_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ByteStream NXOCParser::serialize(const std::shared_ptr<const world::Cube> cube,
7676

7777
std::shared_ptr<world::Cube> NXOCParser::deserialize(const ByteStream &stream) {
7878
ByteStreamReader reader(stream);
79-
if (reader.read<std::string>(static_cast<std::size_t>(13)) != "Inexor Octree") {
79+
if (reader.read<std::string>(13ull) != "Inexor Octree") {
8080
throw IoException("Wrong identifier.");
8181
}
8282
const auto version = reader.read<std::uint32_t>();

0 commit comments

Comments
 (0)