Skip to content

Commit

Permalink
Fixed warning in Renderer2D (TheCherno#224)
Browse files Browse the repository at this point in the history
Warning in Renderer2D::EndScene() of implicit conversion from ptrdiff_t to uint32_t
  • Loading branch information
LovelySanta authored Apr 27, 2020
1 parent 6a93423 commit dc7c9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hazel/src/Hazel/Renderer/Renderer2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace Hazel {
{
HZ_PROFILE_FUNCTION();

uint32_t dataSize = (uint8_t*)s_Data.QuadVertexBufferPtr - (uint8_t*)s_Data.QuadVertexBufferBase;
uint32_t dataSize = (uint32_t)( (uint8_t*)s_Data.QuadVertexBufferPtr - (uint8_t*)s_Data.QuadVertexBufferBase );
s_Data.QuadVertexBuffer->SetData(s_Data.QuadVertexBufferBase, dataSize);

Flush();
Expand Down

0 comments on commit dc7c9a0

Please sign in to comment.