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

Asterisk detected as pointer instead of multiplication sign #494

Open
chlimous opened this issue Apr 23, 2024 · 1 comment
Open

Asterisk detected as pointer instead of multiplication sign #494

chlimous opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chlimous
Copy link

Describe the bug
The asterisk is detected as a pointer when it is actually a multiplication sign.

Erroneous code

var = (int)(fct(j)) * 2;
Error: SPC_AFTER_POINTER    (line:  18, col:  25):	space after pointer

Additional infos

OS: Arch
python3 --version: 3.11.8
norminette -v: 3.3.54
@Asandolo Asandolo added the bug Something isn't working label Jun 21, 2024
@Petrus000000
Copy link

I have the same problem with :

var_a = (int)(4 * fct(var_b / 4.0)) * var_c;
var_d = (unsigned char)(0xff / *var_e) * (*var_e > 1.0);

I bypass it with :

var_a = (4 * (int)fct(var_b / 4.0)) * var_c;
var_d = (unsigned char)((0xff / *var_e) * (*var_e > 1.0));

In waiting the fix of this bug, we can change where our casts-types are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants