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

Update pipeline.cc #263

Merged
merged 1 commit into from
Sep 6, 2015
Merged

Update pipeline.cc #263

merged 1 commit into from
Sep 6, 2015

Conversation

chrisriley
Copy link

In the upgrade to nan v2 the baton values for blurSigma, sharpenFlat, and sharpenJagged are being cast to int32_t causing blur(sigma) and sharpen(radius, flat, jagged) to fail with "parameters out of range" (at least with nodejs 0.12.7). This patch fixes the issue by casting these baton values to doubles.

In the upgrade to nan v2 that was part of v0.11.2 the baton values for blurSigma, sharpenFlat, and sharpenJagged were being cast to int32_t causing blur(sigma) and sharpen(radius, flat, jagged) to fail with "parameters out of range". This patch casts these baton values to doubles.
@lovell
Copy link
Owner

lovell commented Sep 6, 2015

Thank you for finding and fixing this Chris!

It looks like I broke this in b7e0a6f. The functional tests failed to detect it as the sharpen tests have yet to take advantage of the fingerprint-based assertions used in most other tests - I'll fix this.

lovell added a commit that referenced this pull request Sep 6, 2015
Convert blur and sharpen parameters to double instead of int.
This was broken during the nan v2 upgrade by commit b7e0a6f.
@lovell lovell merged commit 85d86db into lovell:master Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants