Added support for f suffix on YEngine floats

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
0.9.1.0-post-fixes
Stolen Ruby 2018-12-07 04:20:05 -08:00 committed by UbitUmarov
parent 530a6a40ed
commit 551c097db9
1 changed files with 16 additions and 0 deletions

View File

@ -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)