Commit 88354933 authored by Petter Reinholdtsen's avatar Petter Reinholdtsen

New upstream version 0.19

parent c3b349fe
......@@ -6,7 +6,7 @@ local two32 = 2^32
local to_binary = function(x)
local pos = two31
local a = ""
if x < 0 then
if x < 0 then
x = x + two32
end
x = x % two32
......@@ -23,7 +23,7 @@ local to_binary = function(x)
end
local from_binary = function(x)
local z = tonumber(x)
local z = tonumber(x,2)
if z >= two31 then
return z - two32
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment