Re: [Code] Subscript has type char

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/26/97

On Wed, 26 Nov 1997, Aaron Miller wrote:

>I am getting the warning 'Subscript has type char' all over my code when I
>compile in 95, with Gnu Win 32. Anyone know the probable cause of this?

A 'byte' variable inside an array subscript, cast it to an int to get rid
of the warning or change the variable to int if not in the player

(byte is a typedef'd char)

George Greer  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST