Merge pull request #522 from Pan7/fixParWarn2

Fix warning equality comparison with extraneous parentheses 2
This commit is contained in:
Timothee "TTimo" Besset 2017-07-09 16:38:33 +02:00 committed by GitHub
commit 52da823a3c
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ static picoModel_t *_fm_load( PM_PARAMS_LOAD ){
#endif #endif
continue; continue;
} }
else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry else if ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) { // Not equal to Main entry, and no LL entry
// Add first entry of LL from Main // Add first entry of LL from Main
p_index_LUT2 = (index_LUT_t *)_pico_alloc( sizeof( index_LUT_t ) ); p_index_LUT2 = (index_LUT_t *)_pico_alloc( sizeof( index_LUT_t ) );
if ( p_index_LUT2 == NULL ) { if ( p_index_LUT2 == NULL ) {

View File

@ -127,7 +127,7 @@ rectangle_t rectangle_from_area_cam(){
void update_xor_rectangle( XORRectangle& xor_rectangle ){ void update_xor_rectangle( XORRectangle& xor_rectangle ){
rectangle_t rectangle; rectangle_t rectangle;
if ( ( g_qeglobals.d_select_mode == sel_area ) ) { if ( g_qeglobals.d_select_mode == sel_area ) {
rectangle = rectangle_from_area_cam(); rectangle = rectangle_from_area_cam();
} }
xor_rectangle.set( rectangle ); xor_rectangle.set( rectangle );