sorcery  Diff

Differences From Artifact [9b9bc45df4]:

To Artifact [9fd6c4419a]:


    61     61   			end
    62     62   			return str
    63     63   		end;
    64     64   		dec = function(str)
    65     65   			local val = 0
    66     66   			for i = 0, bytes-1 do
    67     67   				local b = string.byte(str,bytes - i)
    68         -				val = (val * 0x100) + b
           68  +				val = (val * 0x100) + (b or 0)
    69     69   			end
    70     70   			if signed then
    71     71   				if val > spoint then val = 0 - (val - spoint) end
    72     72   			end
    73     73   			return val, string.sub(str, 1 + bytes)
    74     74   		end;
    75     75   	}