sizeof(matrix_type) being used instead of sizeof(matrix_type*) in Lab3 Ex1 src and sln
|
a = (matrixNN)malloc(sizeof(matrix_type)*N); |
|
b = (matrixNN)malloc(sizeof(matrix_type)*N); |
|
c = (matrixNN)malloc(sizeof(matrix_type)*N); |
|
a = (matrixNN)malloc(sizeof(matrix_type)*N); |
|
b = (matrixNN)malloc(sizeof(matrix_type)*N); |
|
c = (matrixNN)malloc(sizeof(matrix_type)*N); |
Noticed by a student on the mailing list 2022-04-23.
Not actually harmful in this instance as matrix_type maps to double, so the size matches.
sizeof(matrix_type)being used instead ofsizeof(matrix_type*)in Lab3 Ex1 src and slncom4521/exercise01.c
Line 36 in e2c2d53
com4521/exercise01.c
Line 39 in e2c2d53
com4521/exercise01.c
Line 42 in e2c2d53
com4521/Lab03_Exercise01/exercise01_sln.c
Line 39 in c4c5a14
com4521/Lab03_Exercise01/exercise01_sln.c
Line 42 in c4c5a14
com4521/Lab03_Exercise01/exercise01_sln.c
Line 45 in c4c5a14
Noticed by a student on the mailing list 2022-04-23.
Not actually harmful in this instance as
matrix_typemaps todouble, so the size matches.