cleanup few warnings

This commit is contained in:
dwarning 2023-06-08 15:10:13 +02:00
parent 65cc6fdea4
commit 484fcc959e
1 changed files with 2 additions and 11 deletions

View File

@ -40,22 +40,13 @@ int size = Matrix->Size;
ASSERT_IS_SPARSE( Matrix );
#if spCOMPLEX
for (I = 1; I <= size; I++) {
for (pElement = Matrix->FirstInCol[I]; pElement; pElement = pElement->NextInCol) {
pElement->Real *= constant;
#if spCOMPLEX
pElement->Imag *= constant;
#endif
}
}
return;
#endif
for (I = 1; I <= size; I++) {
pElement = Matrix->FirstInRow[I];
while (pElement != NULL)
{ pElement->Real *= constant;
pElement = pElement->NextInRow;
}
}
return;
}