mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
And fixing the comma.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@347 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4c60d97a27
commit
94181f8895
1 changed files with 6 additions and 2 deletions
|
@ -6351,8 +6351,10 @@ void QCC_PR_ParseDefs (char *classname)
|
||||||
QCC_PR_ParseError(ERR_NOTANUMBER, "enum - not a number");
|
QCC_PR_ParseError(ERR_NOTANUMBER, "enum - not a number");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
v = pr_immediate._float;
|
v = pr_immediate._float;
|
||||||
QCC_PR_Lex();
|
QCC_PR_Lex();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
||||||
def->constant = true;
|
def->constant = true;
|
||||||
|
@ -6393,7 +6395,10 @@ void QCC_PR_ParseDefs (char *classname)
|
||||||
QCC_PR_ParseError(ERR_NOTANUMBER, "enumflags - not a number");
|
QCC_PR_ParseError(ERR_NOTANUMBER, "enumflags - not a number");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
v = pr_immediate._float;
|
v = pr_immediate._float;
|
||||||
|
QCC_PR_Lex();
|
||||||
|
}
|
||||||
|
|
||||||
bits = 0;
|
bits = 0;
|
||||||
i = (int)v;
|
i = (int)v;
|
||||||
|
@ -6410,7 +6415,6 @@ void QCC_PR_ParseDefs (char *classname)
|
||||||
if (bits != 1)
|
if (bits != 1)
|
||||||
QCC_PR_ParseWarning(WARN_ENUMFLAGS_NOTBINARY, "enumflags - value %i not a single bit", (int)v);
|
QCC_PR_ParseWarning(WARN_ENUMFLAGS_NOTBINARY, "enumflags - value %i not a single bit", (int)v);
|
||||||
}
|
}
|
||||||
QCC_PR_Lex();
|
|
||||||
}
|
}
|
||||||
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
||||||
def->constant = true;
|
def->constant = true;
|
||||||
|
|
Loading…
Reference in a new issue