class_zone.cpp: changed fabs() to std::abs()

Originally fabs() was invoked on an integer variable and compared with
an integer, so there is no reason to use the floating point variant.
This commit is contained in:
Maciej Suminski 2017-11-20 16:47:11 +01:00
parent 821c02af3c
commit efaf429a71
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ void ZONE_CONTAINER::Hatch()
// Push only one line for diagonal hatch,
// or for small lines < twice the line length
// else push 2 small lines
if( m_hatchStyle == DIAGONAL_FULL || fabs( dx ) < 2 * hatch_line_len )
if( m_hatchStyle == DIAGONAL_FULL || std::abs( dx ) < 2 * hatch_line_len )
{
m_HatchLines.push_back( SEG( pointbuffer[ip], pointbuffer[ip + 1] ) );
}