lua: fix integer overflow in LNUM patch