Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrongly autocasting float variable value #7

Open
RayZopf opened this issue Feb 25, 2016 · 0 comments
Open

Wrongly autocasting float variable value #7

RayZopf opened this issue Feb 25, 2016 · 0 comments
Labels

Comments

@RayZopf
Copy link

RayZopf commented Feb 25, 2016

Definition of float variable allocating an integer value gets autocasted by LSLForge to integer.
Autocasting at this point is different to SL inworld.

float a = 3;
// when using a in an operation, it is treated as integer value by LSLForge
// using float a or float a = 3 _and_ another line a = 3 stops optimizing -
// keeping the float a =3; line so that Mono later autocasts the value to float (3.000000)

see
#1 (comment) and following
#1 (comment) is a possible way how to handle this

at least this behaviour needs to be stated (esp. as Mono/LSO inworld also do autocasting to integer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants