cmatrix
cmatrix copied to clipboard
Update cmatrix.c
gcc compile error fixed.
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT cmatrix.o -MD -MP -MF .deps/cmatrix.Tpo -c -o cmatrix.o cmatrix.c cmatrix.c: In function ‘resize_screen’: cmatrix.c:277:10: error: lvalue required as left operand of assignment COLS = win.ws_col; ^ cmatrix.c:278:11: error: lvalue required as left operand of assignment LINES = win.ws_row; ^ cmatrix.c:282:15: error: lvalue required as left operand of assignment LINES = 10; ^ cmatrix.c:285:14: error: lvalue required as left operand of assignment COLS = 10;
Changing an assignment to a comparison isn't much of a fix, in my opinion. You're just avoiding the issue altogether.