diff options
| author | Lua Team <team@lua.org> | 2015-06-17 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2015-06-17 12:00:00 +0000 |
| commit | 570b787fcb304dd3cc3472452808abe0d6e9b915 (patch) | |
| tree | cf4b9fc29c6e3e770f0551c33ec251440c60fb0a /src/llimits.h | |
| parent | 6ddf2b3ca86471f90439976967c9e608582f0d0b (diff) | |
| download | lua-github-5.3.1.tar.gz | |
Diffstat (limited to 'src/llimits.h')
| -rw-r--r-- | src/llimits.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/llimits.h b/src/llimits.h index 4b25d36e..277c724d 100644 --- a/src/llimits.h +++ b/src/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.134 2015/03/06 19:49:50 roberto Exp $ +** $Id: llimits.h,v 1.135 2015/06/09 14:21:00 roberto Exp $ ** Limits, basic types, and some other 'installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -261,11 +261,11 @@ typedef unsigned long Instruction; #endif /* -** module: defined as 'a - floor(a/b)*b'; the previous definition gives -** NaN when 'b' is huge, but the result should be 'a'. 'fmod' gives the -** result of 'a - trunc(a/b)*b', and therefore must be corrected when -** 'trunc(a/b) ~= floor(a/b)'. That happens when the division has a -** non-integer negative result, which is equivalent to the test below +** modulo: defined as 'a - floor(a/b)*b'; this definition gives NaN when +** 'b' is huge, but the result should be 'a'. 'fmod' gives the result of +** 'a - trunc(a/b)*b', and therefore must be corrected when 'trunc(a/b) +** ~= floor(a/b)'. That happens when the division has a non-integer +** negative result, which is equivalent to the test below. */ #if !defined(luai_nummod) #define luai_nummod(L,a,b,m) \ |
