Differences From Artifact [670a4be42e]:
- File mods/vtlib/marshal.lua — part of check-in [a810a756ce] at 2024-05-01 13:46:45 on branch trunk — cleanups, fixes, begin canister rework, begin ecology (user: lexi, size: 11097) [annotate] [blame] [check-ins using]
To Artifact [500f446f0a]:
- File mods/vtlib/marshal.lua — part of check-in [0e67c606c9] at 2024-05-01 16:25:38 on branch trunk — fixes, sounds; add license info (user: lexi, size: 11103) [annotate] [blame] [check-ins using]
254 254 return { 255 255 sz = c.sz; 256 256 name = string.format("%sfixed<%s,%s,%s>", 257 257 sign and 's' or 'u', 258 258 bits, base, prec 259 259 ); 260 260 enc = function(v) 261 - return c.enc(v) 261 + return c.enc(v * mul) 262 262 end; 263 263 dec = function(s) 264 264 local v = c.dec(s) 265 265 return v / mul 266 266 end; 267 267 } 268 268 end