On Fri, 12 Dec 1997, Blue Lang wrote:
->handler.c: In function `get_char_room_vis':
->handler.c:949: warning: array subscript has type `char'
->handler.c:949: warning: array subscript has type `char'
->handler.c:949: warning: array subscript has type `char'
->
->because isname is looking for an int?
No. It's easy to decipher. All you ned to know is what an 'array'
is, and what a 'subscript' is. Then you realize that GET_RACE() is
probably getting the value of a variable that's defined as a "byte"
(which is a CircleMUD type that is defined as, "signed char"). So,
what does this all mean? It means the "array subscript" (e.g.,
array[subscript]) wants to be an integer, not a byte. The quick
solution: "array[(int)GET_RACE(ch)]".
daniel koepke / dkoepke@california.com
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST