FIxed a few clang warnings.

This commit is contained in:
Maciej Suminski
2015-03-09 11:06:54 +01:00
parent 5d8f7ba0e6
commit e6a10faab7
15 changed files with 20 additions and 82 deletions
+2 -2
View File
@@ -446,9 +446,9 @@ void DIALOG_CREATE_ARRAY::ARRAY_GRID_OPTIONS::TransformItem( int n, BOARD_ITEM*
point.x = coords.x * m_delta.x + coords.y * m_offset.x;
point.y = coords.y * m_delta.y + coords.x * m_offset.y;
if( abs( m_stagger ) > 1 )
if( std::abs( m_stagger ) > 1 )
{
const int stagger = abs( m_stagger );
const int stagger = std::abs( m_stagger );
const bool sr = m_stagger_rows;
const int stagger_idx = ( ( sr ? coords.y : coords.x ) % stagger );