lua-users home
lua-l archive

Re: Apparent modulo error

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


Luiz,
I have been reading various documents and books, however, I can't find how to rebuild Lua.
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
 


AltStyle によって変換されたページ (->オリジナル) /