lua-users home
lua-l archive

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


Luiz,
I have found that I also get the -0 in version 5.1.1.
trav


Luiz Henrique de Figueiredo wrote:
I am getting the following modulo result
    
= 9%3
      
-0
Negative zero?  Has anyone seen this. Macintosh version?
    
I can reproduce this. Apparently it is due to a gcc optimization because
I get 0 when I rebuild Lua with -O0. I'll try to look further into this.
--lhf