Differences From Artifact [9b9bc45df4]:
- File lib/marshal.lua — part of check-in [956134c50b] at 2020-08-11 21:39:39 on branch trunk — initial commit (user: lexi, size: 4937) [annotate] [blame] [check-ins using]
To Artifact [9fd6c4419a]:
- File lib/marshal.lua — part of check-in [82178e0a16] at 2020-08-16 02:05:40 on branch trunk — changes, merges, additions galore (user: lexi, size: 4944) [annotate] [blame] [check-ins using] [more...]
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 }