logoalt Hacker News

1718627440last Monday at 6:39 PM1 replyview on HN

> Rewrite as:

Could do that I just don't like the look. :-)

> Have you ever discovered this bug:

Actually no, because the coding style I use either puts it on a single line or with braces. I never indent just a single line.

So:

    if (condition) doThis ();
or:

    if (condition)
    {
        doThis ();
    }
> Weird that your compiler would support long long, but with a broken Standard library.

Yeah, for your information it was GCC combined with newlib for arm-none-eabi shipped with Debian/MS Windows.


Replies

WalterBrightlast Monday at 11:50 PM

> So or

Those are not what I was mentioning. It was the use of ; immediately following for(). No loop body.

show 1 reply