Skip to content

Commit e1b43e3

Browse files
committed
Fix -Wparentheses
1 parent 873d601 commit e1b43e3

13 files changed

+13
-13
lines changed

BLACS/SRC/BI_MringComb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void BI_MringComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2,
1616
if (Np < 2) return;
1717
Iam = ctxt->scp->Iam;
1818
msgid = Mscopeid(ctxt);
19-
if (REBS = (dest == -1)) dest = 0;
19+
if ( ( REBS = (dest == -1) ) ) dest = 0;
2020

2121
if (nrings > 0)
2222
{

BLACS/SRC/BI_TreeComb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void BI_TreeComb(BLACSCONTEXT *ctxt, BLACBUFF *bp, BLACBUFF *bp2,
8585
Iam = ctxt->scp->Iam;
8686
msgid = Mscopeid(ctxt);
8787
Rmsgid = Mscopeid(ctxt);
88-
if (REBS = (dest == -1)) dest = 0;
88+
if ( ( REBS = (dest == -1) ) ) dest = 0;
8989

9090
mydist = (Np + Iam - dest) % Np;
9191
if (REBS)

PBLAS/SRC/PTOOLS/PB_Cpaxpby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ void PB_Cpaxpby( TYPE, CONJUG, M, N, ALPHA, A, IA, JA, DESCA, AROC,
654654
BnprocsD );
655655
PB_CVMinit( &VM, 0, AnpD, BnpD, Ainb1D, Binb1D, AnbD, BnbD,
656656
p, q, AnprocsD, BnprocsD, lcmb );
657-
if( npq = PB_CVMnpq( &VM ) )
657+
if( ( npq = PB_CVMnpq( &VM ) ) )
658658
{
659659
if( ( RRorCC && ( Aroc == Broc ) &&
660660
( AisR || ( AprocR == BprocR ) ) ) ||

PBLAS/SRC/pcdotc_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void pcdotc_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
526526
* distributed in the same direction, or there is just one block to be exchanged
527527
* or if both operands are similarly distributed in their respective direction.
528528
*/
529-
if( ( YmyprocR == YprocR ) )
529+
if( YmyprocR == YprocR )
530530
{
531531
/*
532532
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/pcdotu_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void pcdotu_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
526526
* distributed in the same direction, or there is just one block to be exchanged
527527
* or if both operands are similarly distributed in their respective direction.
528528
*/
529-
if( ( YmyprocR == YprocR ) )
529+
if( YmyprocR == YprocR )
530530
{
531531
/*
532532
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/pcswap_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void pcswap_( N, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
658658
YnprocsD );
659659
PB_CVMinit( &VM, 0, XnpD, YnpD, Xinb1D, Yinb1D, XnbD, YnbD,
660660
p, q, XnprocsD, YnprocsD, lcmb );
661-
if( npq = PB_CVMnpq( &VM ) )
661+
if( ( npq = PB_CVMnpq( &VM ) ) )
662662
{
663663
if( ( RRorCC && ( Xroc == Yroc ) &&
664664
( XprocR == YprocR ) ) ||

PBLAS/SRC/pddot_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void pddot_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
525525
* distributed in the same direction, or there is just one block to be exchanged
526526
* or if both operands are similarly distributed in their respective direction.
527527
*/
528-
if( ( YmyprocR == YprocR ) )
528+
if( YmyprocR == YprocR )
529529
{
530530
/*
531531
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/pdswap_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void pdswap_( N, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
658658
YnprocsD );
659659
PB_CVMinit( &VM, 0, XnpD, YnpD, Xinb1D, Yinb1D, XnbD, YnbD,
660660
p, q, XnprocsD, YnprocsD, lcmb );
661-
if( npq = PB_CVMnpq( &VM ) )
661+
if( ( npq = PB_CVMnpq( &VM ) ) )
662662
{
663663
if( ( RRorCC && ( Xroc == Yroc ) &&
664664
( XprocR == YprocR ) ) ||

PBLAS/SRC/psdot_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void psdot_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
525525
* distributed in the same direction, or there is just one block to be exchanged
526526
* or if both operands are similarly distributed in their respective direction.
527527
*/
528-
if( ( YmyprocR == YprocR ) )
528+
if( YmyprocR == YprocR )
529529
{
530530
/*
531531
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/psswap_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void psswap_( N, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
658658
YnprocsD );
659659
PB_CVMinit( &VM, 0, XnpD, YnpD, Xinb1D, Yinb1D, XnbD, YnbD,
660660
p, q, XnprocsD, YnprocsD, lcmb );
661-
if( npq = PB_CVMnpq( &VM ) )
661+
if( ( npq = PB_CVMnpq( &VM ) ) )
662662
{
663663
if( ( RRorCC && ( Xroc == Yroc ) &&
664664
( XprocR == YprocR ) ) ||

PBLAS/SRC/pzdotc_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void pzdotc_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
526526
* distributed in the same direction, or there is just one block to be exchanged
527527
* or if both operands are similarly distributed in their respective direction.
528528
*/
529-
if( ( YmyprocR == YprocR ) )
529+
if( YmyprocR == YprocR )
530530
{
531531
/*
532532
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/pzdotu_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void pzdotu_( N, DOT, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
526526
* distributed in the same direction, or there is just one block to be exchanged
527527
* or if both operands are similarly distributed in their respective direction.
528528
*/
529-
if( ( YmyprocR == YprocR ) )
529+
if( YmyprocR == YprocR )
530530
{
531531
/*
532532
* The processes owning a piece of sub( Y ) send it to the corresponding

PBLAS/SRC/pzswap_.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void pzswap_( N, X, IX, JX, DESCX, INCX, Y, IY, JY, DESCY, INCY )
658658
YnprocsD );
659659
PB_CVMinit( &VM, 0, XnpD, YnpD, Xinb1D, Yinb1D, XnbD, YnbD,
660660
p, q, XnprocsD, YnprocsD, lcmb );
661-
if( npq = PB_CVMnpq( &VM ) )
661+
if( ( npq = PB_CVMnpq( &VM ) ) )
662662
{
663663
if( ( RRorCC && ( Xroc == Yroc ) &&
664664
( XprocR == YprocR ) ) ||

0 commit comments

Comments
 (0)