Reply To: Callback error: Lua runtime error

Home Forums General Programming Callback error: Lua runtime error Reply To: Callback error: Lua runtime error

#13324
Hecticcc
Participant
    • Topics: 25
    • Replies: 160
    • Total: 185
    • ★★

    Sure, they are some of the helper methods i use to calculate stuff.

    
    function lsb(x)
    
    	if x ~= nil then
    
    	local bi = CtrlrLuaBigInteger(x)
    	local lsb = bi:getBitRangeAsInt (0,7)
    
    	return (lsb)
    	end
    end
    
    
    function msb(x)
    
    	if x ~= nil then
    
    	local bi = CtrlrLuaBigInteger(x)
    	local msb = bi:getBitRangeAsInt (7,7)
    
    	return (msb)
    	end
    end
    
    Ctrlr