Fix for bug 24215. Misspelled constant.

git-svn-id: svn://10.0.0.236/trunk@58197 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
2000-01-19 01:40:48 +00:00
parent c395c3dd51
commit dd29a022b8
2 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ IdlScanner::IdlScanner()
mCurrentToken = (Token*)0;
mTokenPeeked = 0;
mLineNumber = 1;
for (int i = 0; i < MAX_ID_LENGHT; i++) mTokenName[i] = 0;
for (int i = 0; i < MAX_ID_LENGTH; i++) mTokenName[i] = 0;
}
IdlScanner::~IdlScanner()
@@ -130,7 +130,7 @@ Token* IdlScanner::NextToken()
int c = EatWhiteSpace();
if (EOF != c) {
for (int i = 1; i < MAX_ID_LENGHT; i++) mTokenName[i] = 0;
for (int i = 1; i < MAX_ID_LENGTH; i++) mTokenName[i] = 0;
mTokenName[0] = c;
mCurrentToken->SetToken(ERROR_TOKEN);

View File

@@ -31,7 +31,7 @@
class ifstream;
#endif
#define MAX_ID_LENGHT 256
#define MAX_ID_LENGTH 256
enum EIDLTokenType {
EOF_TOKEN = -1,
@@ -170,7 +170,7 @@ private:
Token *mCurrentToken;
long mLineNumber;
int mTokenPeeked;
char mTokenName[MAX_ID_LENGHT];
char mTokenName[MAX_ID_LENGTH];
public:
IdlScanner();