Question:blobmsg_add_u64()
zhao-wuji-ahh opened this issue · 2 comments
zhao-wuji-ahh commented
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);
}
zhao-wuji-ahh commented
why not create a new function to deal with signed parameters?
zhao-wuji-ahh commented