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

Ternary not detected #98

Closed
pajotg opened this issue Mar 20, 2021 · 0 comments
Closed

Ternary not detected #98

pajotg opened this issue Mar 20, 2021 · 0 comments

Comments

@pajotg
Copy link

pajotg commented Mar 20, 2021

Describe the bug
For some reason this ternary was not detected by norminette

Erroneous code

pt[0] = '-';
ft_write_itoa(pt, n < 0 ? -(long)n : (long)n, len - 1);

Additional infos

  • OS: GNU/Linux
  • python --version: Python 2.7.18 (also have 3.8.5 and 3.9.2)
  • norminette -v: norminette 3.2.3

Additional context
It needs the line above to not be detected for some reason

N0ich pushed a commit that referenced this issue Mar 22, 2021
@N0ich N0ich closed this as completed Mar 22, 2021
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

No branches or pull requests

2 participants