lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


local a = bit.band(sample, 0xff)

Couldn't this more easily be expressed as local a = sample % 256?

On Tue, 07 Sep 2010 02:40:33 -0400, Linus Sjögren <thelinx@unreliablepollution.net> wrote:

I can't help but notice that the "test" script begins:
--[[
 Note: This is just a concept for now. It doesn't work. At all.
]]

Whoops, a dinosaur from the testing phase. Believe me, it works :P