lua-5.4.0-work2 doc/manual.html error?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

lua-5.4.0-work2 doc/manual.html error?

Kenneth Lorber
Last paragraph of 3.4.1 – Arithmetic Operators:
In case of overflows in integer arithmetic, all operations wrap around, according to the usual rules of two-complement arithmetic. (In other words, they return the unique representable integer that is equal modulo 2^64 to the mathematical result.)

Shouldn't that be 2^64 or 2^32 depending on the size of lua_Unsigned?

Thanks,
Keni
Reply | Threaded
Open this post in threaded view
|

Re: lua-5.4.0-work2 doc/manual.html error?

Roberto Ierusalimschy
> Last paragraph of 3.4.1 – Arithmetic Operators:
> In case of overflows in integer arithmetic, all operations wrap around, according to the usual rules of two-complement arithmetic. (In other words, they return the unique representable integer that is equal modulo 2^64 to the mathematical result.)
>
> Shouldn't that be 2^64 or 2^32 depending on the size of lua_Unsigned?

Sure. Thanks,

-- Roberto