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

⏩ none should not be defined in cache_override_tag witx #269

Merged
merged 1 commit into from
May 19, 2023

Conversation

joeshaw
Copy link
Member

@joeshaw joeshaw commented May 18, 2023

The ABI expects $none to have a value of 0, and $pass to have a
value of 1. However, flags in witx start with a value of 1. Putting
$none in the list erroneously defines it to have a value of 1.

Fastly's SDKs do things correctly, but tools like https://github.com/jedisct1/witx-codegen
which generate bindings from witx will generate code that is off by one
bit position.

The ABI expects `$none` to have a value of 0, and `$pass` to have a
value of 1.  However, flags in witx start with a value of 1.  Putting
`$none` in the list erroneously defines it to have a value of 1.

Fastly's SDKs do things correctly, but tools like https://github.com/jedisct1/witx-codegen
which generate bindings from witx will generate code that is off by one
bit position.
@joeshaw joeshaw merged commit 3041220 into main May 19, 2023
@joeshaw joeshaw deleted the joeshaw/cache-override-tag-off-by-one branch May 19, 2023 16:25
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.

2 participants