mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[lua] math.mod -> math.fmod
It was changed in lua5.1
This commit is contained in:
parent
c0e69868ec
commit
a6fbf18df5
@ -156,7 +156,7 @@ function hx (c)
|
||||
end
|
||||
|
||||
function char2hex (c)
|
||||
return '%'..hx (string.byte (c) / 16)..hx (math.mod(string.byte (c), 16))
|
||||
return '%'..hx (string.byte (c) / 16)..hx (math.fmod(string.byte (c), 16))
|
||||
end
|
||||
|
||||
function escape (str)
|
||||
|
Loading…
x
Reference in New Issue
Block a user