aboutsummaryrefslogtreecommitdiff
path: root/printer.c
diff options
context:
space:
mode:
Diffstat (limited to 'printer.c')
-rw-r--r--printer.c4
1 files changed, 2 insertions, 2 deletions
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)
{