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

Fix permissions on arm processors and prepare for permissions change #386

Closed

Conversation

truemedian
Copy link
Contributor

Works around a bug in luajit that seems to happen when passing a
number to bit.bor that is larger than 2^31-1

Additionally adds a few missing enumerations so that enableAll and
disableAll work as expected.

Fixes #384

Also forces permissions to be sent as a string, in preparation for
when they'll no longer be allowed to be sent as a number.

works around a bug in luajit that seems to happen when passing a
number to `bit.bor` that is larger than 2^31-1

Additionally adds a few missing enumerations so that enableAll and
disableAll work as expected.

Fixes SinisterRectus#384
@MeteorTheLizard
Copy link

I've been using this fix for a few weeks now and it has seen a lot of use. So far there haven't been any problems with it, though through testing I found out that when there is an enum missing in libs/enums.lua (for example when discord decides to add a new one on their end), then the permission management breaks again.

@SinisterRectus
Copy link
Owner

It looks like this changes the enum type from number to LJ int. Not ideal, but is there no better way?

@truemedian
Copy link
Contributor Author

Closing as wont-fix. arm32 is relatively rare, and nobody has complained since the original report.

Additionally, this introduces a lot of other type-related issues and discord has stopped claiming that they'll stop at 64 bit integers so a better solution will need to be implemented in 3.0 anyway.

@truemedian truemedian closed this Oct 7, 2024
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

Successfully merging this pull request may close these issues.

Permission management not functioning correctly
3 participants