Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Sep 27, 2023
1 parent 0bd4dbe commit ef98c53
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion core/include/cubos/core/memory/buffer_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace cubos::core::memory
/// @param buffer Buffer to read/write from.
/// @param size Size of the buffer.
/// @param readOnly Whether the buffer is read-only.
BufferStream(void* buffer, std::size_t size, bool readOnly = false);
BufferStream(void* boffer, std::size_t size, bool readOnly = false);

/// @brief Constructs using a read-only buffer.
/// @param buffer Buffer to read/write from.
Expand Down
2 changes: 0 additions & 2 deletions core/include/cubos/core/memory/endianness.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ namespace cubos::core::memory

src.value = value;
for (std::size_t i = 0; i < sizeof(T); i++)
{
dst.bytes[i] = src.bytes[sizeof(T) - i - 1];
}
return dst.value;
}

Expand Down
2 changes: 0 additions & 2 deletions core/src/cubos/core/memory/buffer_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ BufferStream::BufferStream(std::size_t size)
BufferStream::~BufferStream()
{
if (mOwned)
{
delete[] static_cast<char*>(mBuffer);
}
}

BufferStream::BufferStream(const BufferStream& other)
Expand Down
2 changes: 0 additions & 2 deletions core/tests/ecs/dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ static void assertOrder(World& world, std::vector<int> values)
auto order = world.read<std::vector<int>>();
REQUIRE(order.get().size() == values.size());
for (std::size_t i = 0; i < values.size(); ++i)
{
CHECK(order.get()[i] == values[i]);
}
}

/// Compiles the dispatcher chain and calls the systems.
Expand Down

0 comments on commit ef98c53

Please sign in to comment.