pretty_print_dict print ints in lists

Bugfix #94
This commit is contained in:
Willem Toorop 2014-02-04 10:10:12 +01:00
parent 02e159c935
commit 7d29121721
2 changed files with 4 additions and 5 deletions

View File

@ -610,9 +610,8 @@ getdns_pp_list(ldns_buffer * buf, size_t indent, struct getdns_list *list)
switch (dtype) { switch (dtype) {
case t_int: case t_int:
if (getdns_list_get_int(list, i, &int_item) != if (getdns_list_get_int(list, i, &int_item) !=
GETDNS_RETURN_GOOD) GETDNS_RETURN_GOOD ||
if (ldns_buffer_printf(buf, " %d", ldns_buffer_printf(buf, "%d", (int) int_item) < 0)
(int) int_item) < 0)
return -1; return -1;
break; break;