This commit is contained in:
Tamer Oeztuerk 2025-05-22 13:24:12 +02:00
parent 9c53700d01
commit 82f7af17c3

View File

@ -106,7 +106,7 @@ MatTyp getEntryAt(const Matrix ma, unsigned int xPos, unsigned int yPos) {
\*--------------------------------------------------------------------*/ \*--------------------------------------------------------------------*/
Bool setEntryAt(Matrix ma, unsigned int xPos, unsigned int yPos, MatTyp value) { Bool setEntryAt(Matrix ma, unsigned int xPos, unsigned int yPos, MatTyp value) {
if (xPos >= ma.spalten || yPos >= ma.zeilen) return FALSE; if (xPos >= ma.spalten || yPos >= ma.zeilen) return FALSE;
ma.mElement[yPos * ma.spalten + xPos] = value; ma.mElement[yPos * ma.spalten + xPos] = value;
return TRUE; return TRUE;
} }