-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
sizeof(matrix_type) being used instead of sizeof(matrix_type*) in Lab3 Ex1 src and sln
Line 36 in e2c2d53
| a = (matrixNN)malloc(sizeof(matrix_type)*N); |
Line 39 in e2c2d53
| b = (matrixNN)malloc(sizeof(matrix_type)*N); |
Line 42 in e2c2d53
| c = (matrixNN)malloc(sizeof(matrix_type)*N); |
com4521/Lab03_Exercise01/exercise01_sln.c
Line 39 in c4c5a14
| a = (matrixNN)malloc(sizeof(matrix_type)*N); |
com4521/Lab03_Exercise01/exercise01_sln.c
Line 42 in c4c5a14
| b = (matrixNN)malloc(sizeof(matrix_type)*N); |
com4521/Lab03_Exercise01/exercise01_sln.c
Line 45 in c4c5a14
| 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.
Reactions are currently unavailable