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

UB in easeInOut #4

Open
GoogleCodeExporter opened this issue Mar 14, 2016 · 0 comments
Open

UB in easeInOut #4

GoogleCodeExporter opened this issue Mar 14, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. download source
2. open the file "CppTweener.cpp"
3. scroll to row 88


the statement "return -c/2 * (((t-2)*(--t)) - 1) + b;"

is undefined behavior due to using --t and t-2 in the same expression, where 
its not guaranteed to happen in left-to-right order.


Original issue reported on code.google.com by kristoff...@23c.se on 9 Aug 2012 at 9:05

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

No branches or pull requests

1 participant