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

splineoverlap.c:2146 always evaluates to true #605

Closed
davelab6 opened this issue Jun 25, 2013 · 3 comments
Closed

splineoverlap.c:2146 always evaluates to true #605

davelab6 opened this issue Jun 25, 2013 · 3 comments
Labels

Comments

@davelab6
Copy link
Member

Email today:

I just ran the static analysis checker "cppcheck" over
the source code of fontforge.

Amongst many other things, cppcheck said

[charinfo.c:3618]: (warning) Logical disjunction always evaluates to true: uni>= 912 || uni < 943.

[splineoverlap.c:2146]: (warning) Logical conjunction always evaluates to false: nwinding <= -2 && nwinding>= 2.

In both cases, suggest code rework.

Regards

David Binderman
@ahyangyi
Copy link
Contributor

I guess the fix might be as simple as changing "||" to "&&" and vice versa. However, we need someone who can understand these magic things before making the change.

@JoesCat
Copy link
Contributor

JoesCat commented Jun 30, 2013

Used during Element->Overlap->Intersect.

@JoesCat
Copy link
Contributor

JoesCat commented Jul 10, 2013

See 9d05abd

@JoesCat JoesCat closed this as completed Jul 10, 2013
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

3 participants