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

Update PROTOCOL-PDO.md #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hsmade
Copy link
Contributor

@hsmade hsmade commented Mar 23, 2024

-1 doesn't exist in UINT, so I converted them to what the value would be in the respective UINTs

-1 doesn't exist in UINT, so I converted them to what the value would be in the respective UINTs
@denmaus
Copy link

denmaus commented Mar 23, 2024

I must admit that at least 4294967295 looks like a magic number.
Is not possible to use a more intuitive and clear syntax: 0xFF for 8 bit and 0xFFFF for 16 bit numbers?

@michaelarnauts
Copy link
Owner

I agree with @denmaus, while you are technically correct that it's impossible to specify a negative number with an unsigned int, it does make it more clear what the values mean by just indicating a negative number.

I prefer this clarity. Maybe a note below the table to indicate this might be better?

@hsmade
Copy link
Contributor Author

hsmade commented Mar 29, 2024

Maybe: -1 (0xFFFF) ?

@michaelarnauts
Copy link
Owner

Maybe: -1 (0xFFFF) ?

That's also fine I guess :)

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.

3 participants