mirror of
https://github.com/opensim/opensim.git
synced 2026-05-27 20:35:59 +08:00
Added support for f suffix on YEngine floats
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
@@ -784,6 +784,22 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
}
|
||||
exponent = x;
|
||||
}
|
||||
if ((c == 'F') || (c == 'f'))
|
||||
{
|
||||
if (++j >= source.Length)
|
||||
{
|
||||
TokenError(i, "f at end of source");
|
||||
return j;
|
||||
}
|
||||
|
||||
c = source[j];
|
||||
if (((c >= '0') && (c <= '9')) || c == '.' || ((c == 'E') || (c == 'e')) || ((c == 'F') || (c == 'f')))
|
||||
{
|
||||
TokenError(j-1, "Syntax error");
|
||||
return j;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(!decimals)
|
||||
|
||||
Reference in New Issue
Block a user