Added support for f suffix on YEngine floats
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>0.9.1.0-post-fixes
parent
530a6a40ed
commit
551c097db9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue