From f6ee1462e26d723cf5d53157eadaff2804d18c3a Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 28 Oct 2019 04:15:16 +0100 Subject: reformed pformat struct, rename t_flist --- printer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'printer.c') diff --git a/printer.c b/printer.c index cacfbd5..8884c00 100644 --- a/printer.c +++ b/printer.c @@ -13,7 +13,7 @@ char *convert_to_str(t_pformat *pformat, va_list ap) t_conversion conversion = pformat->conversion; str = NULL; - if (pformat->min_width.wildcard.exist) + if (pformat->min_width.wildcard) { pformat->min_width.value = va_arg(ap, int); if (pformat->min_width.value < 0) @@ -22,7 +22,7 @@ char *convert_to_str(t_pformat *pformat, va_list ap) pformat->min_width.value *= -1; } } - if (pformat->precision.wildcard.exist) + if (pformat->precision.wildcard) pformat->precision.value = va_arg(ap, int); if (conversion == CONVERSION_CHAR) { -- cgit