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

Incorrect output for array starting with a negative integer #106

Open
Dwight-Reed opened this issue Jul 7, 2022 · 1 comment
Open

Incorrect output for array starting with a negative integer #106

Dwight-Reed opened this issue Jul 7, 2022 · 1 comment
Labels

Comments

@Dwight-Reed
Copy link

When initializing an array of integers on multiple lines and the first value is negative, style50 gives incorrect output

my code:

int my_array[] =
{
    -1,
    2,
    3
};

style50 output:

int my_array[] =
{
    -1,
        2,
        3
    };

If the first integer is not negative, style50 outputs "Looks good!"

@dmalan dmalan added the bug label Jul 7, 2022
@dmalan
Copy link
Member

dmalan commented Jul 8, 2022

Thanks for the report! Thanks seems to be an issue with http://astyle.sourceforge.net/, though we might transition away from that before long!

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

2 participants