Skip to content

Commit ed300e3

Browse files
committed
Silence -Wtautological-compare.
1 parent 928042d commit ed300e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gpuarray_array_blas.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ int GpuArray_rgemm(cb_transpose transA, cb_transpose transB, double alpha,
217217
return GA_INVALID_ERROR;
218218

219219
if (A->nd != 2 || B->nd != 2 || C->nd != 2 ||
220-
A->typecode != A->typecode || B->typecode != A->typecode ||
220+
B->typecode != A->typecode ||
221221
C->typecode != A->typecode)
222222
return GA_VALUE_ERROR;
223223

@@ -367,7 +367,7 @@ int GpuArray_rger(double alpha, GpuArray *X, GpuArray *Y, GpuArray *A,
367367
return GA_INVALID_ERROR;
368368

369369
if (X->nd != 1 || Y->nd != 1 || A->nd != 2 ||
370-
X->typecode != X->typecode || Y->typecode != X->typecode ||
370+
Y->typecode != X->typecode ||
371371
A->typecode != X->typecode)
372372
return GA_VALUE_ERROR;
373373

@@ -483,7 +483,7 @@ int GpuArray_rgemmBatch_3d(cb_transpose transA, cb_transpose transB, double alph
483483
return GA_INVALID_ERROR;
484484

485485
if (A->nd != 3 || B->nd != 3 || C->nd != 3 ||
486-
A->typecode != A->typecode || B->typecode != A->typecode ||
486+
B->typecode != A->typecode ||
487487
C->typecode != A->typecode)
488488
return GA_VALUE_ERROR;
489489

0 commit comments

Comments
 (0)