lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Il giorno gio, 02/07/2020 alle 17.24 -0400, Joseph C. Sible ha scritto:
> ...
> Looks like a compiler bug to me too. Here's a minimized example:
> https://godbolt.org/z/RMc3RX
> ...

One can always define the argument as `volatile` to avoid optimization
blunders, e.g. the following change will make that code work again:

    static int tostringbuff (volatile struct TValue *num, char *str)

No idea if this is C89 compliant though.

Ciao.
-- 
Nicola