1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0024087: Eliminate compiler warning C4244 in MSVC++ with warning level 4

Most of the compiler warnings C4244 have been eliminated.
This commit is contained in:
omy
2013-07-29 10:27:34 +04:00
parent 673693f1cf
commit 8263fcd384
17 changed files with 50 additions and 52 deletions

View File

@@ -61,14 +61,14 @@ namespace
Standard_Size aStencilIter = 0, aColorIter = 0, aDepthIter = 0;
for (aStencilIter = 0; aStencilIter < sizeof(BUFF_BITS_STENCIL) / sizeof(int); ++aStencilIter)
{
aPixelFrmtTmp.cStencilBits = BUFF_BITS_STENCIL[aStencilIter];
aPixelFrmtTmp.cStencilBits = (BYTE)(BUFF_BITS_STENCIL[aStencilIter]);
for (aDepthIter = 0; aDepthIter < sizeof(BUFF_BITS_DEPTH) / sizeof(int); ++aDepthIter)
{
aPixelFrmtTmp.cDepthBits = BUFF_BITS_DEPTH[aDepthIter];
aPixelFrmtTmp.cDepthBits = (BYTE)(BUFF_BITS_DEPTH[aDepthIter]);
aPixelFrmtIdGood = 0;
for (aColorIter = 0; aColorIter < sizeof(BUFF_BITS_COLOR) / sizeof(int); ++aColorIter)
{
aPixelFrmtTmp.cColorBits = BUFF_BITS_COLOR[aColorIter];
aPixelFrmtTmp.cColorBits = (BYTE)(BUFF_BITS_COLOR[aColorIter]);
aPixelFrmtIdLast = ChoosePixelFormat (theDevCtx, &aPixelFrmtTmp);
if (aPixelFrmtIdLast == 0)
{