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

[filter-effects-1] Allow feTurbulence's reference implementation to compile #6504

Open
AlanDeSmet opened this issue Aug 9, 2021 · 1 comment

Comments

@AlanDeSmet
Copy link

The specification for the feTurbulenceElement filter primitive includes "C code below show[ing] the exact algorithm". Unfortunately, the code does not compile under any of the C or C++ standards supported by gcc 9.3.0. It has some very old C assumptions that are not legal C++ (and may generate warning in a modern C compiler), as well as some C++ casting operators and use of the bool type that are not legal C. Some relatively simple changes will bring it into compliance with modern C. My attempt to do so is attached.

turb.c.txt

@tateshelby28
Copy link

🙂

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

3 participants