Open michaelwright235 opened 2 months ago
I've encountered a bug when I tried using the plist_set_date_val function:
plist_set_date_val
Assertion failed: (length == sizeof(double)), function plist_get_date_val, file plist.c, line 1420.
When I was expecting the code, I found out that arguments of sizeof for date related functions are mismatching.
sizeof
plist_new_date(...) (uses double):
plist_new_date(...)
data->length = sizeof(double);
plist_set_date_val(...) (uses timeval):
plist_set_date_val(...)
plist_set_element_val(node, PLIST_DATE, &val, sizeof(struct timeval));
plist_get_date_val(...) (uses double):
plist_get_date_val(...)
assert(length == sizeof(double));
I've encountered a bug when I tried using the
plist_set_date_val
function:When I was expecting the code, I found out that arguments of
sizeof
for date related functions are mismatching.plist_new_date(...)
(uses double):plist_set_date_val(...)
(uses timeval):plist_get_date_val(...)
(uses double):