aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-25 11:43:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-25 11:43:03 -0300
commitb0f3df16a495745cf16657a48dde6845ec85c732 (patch)
tree243436d6728e159af83ff376bda84eb065f4ed94 /lfunc.c
parentcad5a4fdbb0f0843ec67596d1e472187decf1c88 (diff)
downloadlua-b0f3df16a495745cf16657a48dde6845ec85c732.tar.gz
lua-b0f3df16a495745cf16657a48dde6845ec85c732.tar.bz2
lua-b0f3df16a495745cf16657a48dde6845ec85c732.zip
Addition in math.random can overflow
To avoid complains from some tools, the addition when computing math.random(n,m), which is computed as n + random(0, m - n), should use unsigned integers.
Diffstat (limited to 'lfunc.c')
0 files changed, 0 insertions, 0 deletions