
ROBOTC programming error warning
I'm writing a program for my last school assignment that is essentially a simple plotter (only doing letters at the moment), however when trying to compile the program i get the error:
"**Error**:Mixed mode (byte/short) comparison in conditional branch".
the thing is the section of the code it is reffering to is comparing a char to a byte, as far as i thought a char was considered to be a number so i'm not sure as to why this error is occuring. although i've only been coding in ROBOTC for the past week (i haven't used version of c previously either).
here is the code, the problem line is "if letters[i][0] == l"
any ideas as to why this is happening or how i can get around it?
here is an example of the array:
 |  |  |
 | Code: const int letters[][] = { {'A',1,485,-75,0,0}, // the last two are a second set of target motors and associated power levels as to make diagonal lines {'A',2,180,75,0,0}, {'A',1,485,75,0,0} };
|  |
 |  |  |
let me know if you need any more details and any help would be greatly appreciated.