Skip to content

Commit

Permalink
[r6674] Избавились от warning C4018.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksoid1978 committed Nov 10, 2021
1 parent 84331a5 commit be8d4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SubPic/DX9SubPic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ STDMETHODIMP CDX9SubPic::AlphaBlt(RECT* pSrc, RECT* pDst, SubPicDesc* pTarget)
{(float)dst.right, (float)dst.bottom, 0.5f, 2.0f, (float)src.right / w, (float)src.bottom / h},
};

for (ptrdiff_t i = 0; i < std::size(pVertices); i++) {
for (size_t i = 0; i < std::size(pVertices); i++) {
pVertices[i].x -= 0.5f;
pVertices[i].y -= 0.5f;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Subtitles/HdmvSub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CHdmvSub::~CHdmvSub()
SAFE_DELETE_ARRAY(m_pSegBuffer);
SAFE_DELETE_ARRAY(m_DefaultCLUT.Palette);

for (int i = 0; i < std::size(m_CLUT); i++) {
for (size_t i = 0; i < std::size(m_CLUT); i++) {
SAFE_DELETE_ARRAY(m_CLUT[i].Palette);
}
}
Expand Down Expand Up @@ -454,7 +454,7 @@ void CHdmvSub::ParseObject(CGolombBuffer* pGBuffer, USHORT nUnitSize)
}

SHORT object_id = pGBuffer->ReadShort();
if (object_id > std::size(m_ParsedObjects)) {
if (object_id > (SHORT)std::size(m_ParsedObjects)) {
TRACE_HDMVSUB(L"CHdmvSub::ParseObject() : FAILED, object_id - %d", object_id);
return;
}
Expand Down

0 comments on commit be8d4e5

Please sign in to comment.