Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Symbol near '&' #1

Open
oscaracena opened this issue Jan 6, 2025 · 0 comments
Open

Unexpected Symbol near '&' #1

oscaracena opened this issue Jan 6, 2025 · 0 comments

Comments

@oscaracena
Copy link

Hi!

I've installed the plugin in my personal folder (Linux), and when I start wireshark, it says this:

Lua: syntax error: /home/oscar/.local/lib/wireshark/plugins/midi2.lua:226: unexpected symbol near '&'

image

I'm using Wireshark 3.6.2 on Pop!_OS 22.04 LTS. It's strange, because the line with the error does not have anything wrong...

	-- bit32 library has been removed from Lua 5.3
	--Status = bit32.band(Status, 0xF0)
	--Channel = bit32.band(Channel, 0x0F)
	--Group = bit32.band(Group, 0x0F)

	Status = Status & 0xF0  -- THIS IS LINE 226
	Channel = Channel & 0x0F
	Group = Group & 0x0F
	DataByte1 = DataByte1 & 0x7F
	DataByte2 = DataByte2 & 0x7F

I'm a bit puzzled...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant