Fix msvc warnings
This commit is contained in:
parent
10e60acf34
commit
8377ebb0e1
|
@ -542,15 +542,15 @@ void IMAGE::EfxFilter_SkipCenter( IMAGE* aInImg, IMAGE_FILTER aFilterType, unsig
|
||||||
{
|
{
|
||||||
int yc = iy - yCenter;
|
int yc = iy - yCenter;
|
||||||
|
|
||||||
yc = yc * yc;
|
unsigned int ycsq = yc * yc;
|
||||||
|
|
||||||
for( size_t ix = 0; ix < m_width; ix++ )
|
for( size_t ix = 0; ix < m_width; ix++ )
|
||||||
{
|
{
|
||||||
int xc = ix - xCenter;
|
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;
|
const unsigned int offset = ix + iy * m_width;
|
||||||
|
|
||||||
|
|
|
@ -1053,8 +1053,6 @@ int NODE::FindLinesBetweenJoints( const JOINT& aA, const JOINT& aB, std::vector<
|
||||||
|
|
||||||
void NODE::FixupVirtualVias()
|
void NODE::FixupVirtualVias()
|
||||||
{
|
{
|
||||||
int n;
|
|
||||||
|
|
||||||
std::vector<VVIA*> vvias;
|
std::vector<VVIA*> vvias;
|
||||||
|
|
||||||
for( auto& joint : m_joints )
|
for( auto& joint : m_joints )
|
||||||
|
|
Loading…
Reference in New Issue