Fix msvc warnings

This commit is contained in:
Marek Roszko 2021-06-06 15:30:31 -04:00
parent 10e60acf34
commit 8377ebb0e1
2 changed files with 3 additions and 5 deletions

View File

@ -542,15 +542,15 @@ void IMAGE::EfxFilter_SkipCenter( IMAGE* aInImg, IMAGE_FILTER aFilterType, unsig
{
int yc = iy - yCenter;
yc = yc * yc;
unsigned int ycsq = yc * yc;
for( size_t ix = 0; ix < m_width; ix++ )
{
int xc = ix - xCenter;
xc = xc * xc;
unsigned int xcsq = xc * xc;
if( ( xc + yc ) < radiusSquared )
if( ( xcsq + ycsq ) < radiusSquared )
{
const unsigned int offset = ix + iy * m_width;

View File

@ -1053,8 +1053,6 @@ int NODE::FindLinesBetweenJoints( const JOINT& aA, const JOINT& aB, std::vector<
void NODE::FixupVirtualVias()
{
int n;
std::vector<VVIA*> vvias;
for( auto& joint : m_joints )