We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to know why the input parameters of the following functions are unsigned, why are they treated as signed?Could somebody help me?
blobmsg_add_u64(struct blob_buf *buf, const char *name, uint64_t val) { val = cpu_to_be64(val); return blobmsg_add_field(buf, BLOBMSG_TYPE_INT64, name, &val, 8); }
The text was updated successfully, but these errors were encountered:
why not create a new function to deal with signed parameters?
Sorry, something went wrong.
@hauke @nbd168
No branches or pull requests
I want to know why the input parameters of the following functions are unsigned, why are they treated as signed?Could somebody help me?
blobmsg_add_u64(struct blob_buf *buf, const char *name, uint64_t val)
{
val = cpu_to_be64(val);
return blobmsg_add_field(buf, BLOBMSG_TYPE_INT64, name, &val, 8);
}
The text was updated successfully, but these errors were encountered: