Eeschema: fix compil warning on 64 bits machines.

This commit is contained in:
jean-pierre charras 2016-11-13 08:43:24 +01:00
parent b9c62b658e
commit e246a61a72
1 changed files with 6 additions and 2 deletions

View File

@ -392,7 +392,9 @@ static void DrawMovePin( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosi
if( parent->GetShowElectricalType() )
show_opts |= PIN_DRAW_ELECTRICAL_TYPE_NAME;
void* showOptions = (void*) show_opts;
// In LIB_PIN::Draw() a void* parameter used as flag to pass show_opts.
// Build it:
void* showOptions = reinterpret_cast<void*>( show_opts );
// Erase pin in old position
if( aErase )
@ -474,7 +476,9 @@ void LIB_EDIT_FRAME::CreatePin( wxDC* DC )
if( GetShowElectricalType() )
show_opts |= PIN_DRAW_ELECTRICAL_TYPE_NAME;
void* showOptions = (void*) show_opts;
// In LIB_PIN::Draw() a void* parameter used as flag to pass show_opts.
// Build it:
void* showOptions = reinterpret_cast<void*>( show_opts );
pin->Draw( m_canvas, DC, wxPoint( 0, 0 ), UNSPECIFIED_COLOR, GR_COPY,
showOptions, DefaultTransform );