Hay,
I was wondering if any of you people could take a look at this lil piece
of code
and see if you can catch my error, because ive done something wrong and of
course i dont see what.
hers the two lines where the warnings come up:
please ignore the int->, im only showing they are ints
int-> number2 = GET_EXP(ch) - (titles[(int)
GET_CLASS(ch)][GET_LEVEL(ch)].exp);
int -> percent = (100 * number2) / number;
these are the warnings:
act.informative.c:941: warning: array subscript has type `char'
act.informative.c:942: warning: array subscript has type `char'
Thanx,
ericdeg@ptdprolog.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
MUD- Visit ShadowMUD goliath.shadow.net 6060
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST