From 5ec620933bc1f811b48dca794a974bd569978211 Mon Sep 17 00:00:00 2001 From: savalet Date: Wed, 30 Oct 2024 17:37:00 +0100 Subject: [PATCH] fix: . int alt form for float --- src/handler/put_float.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler/put_float.c b/src/handler/put_float.c index dfccc8a..d562e04 100644 --- a/src/handler/put_float.c +++ b/src/handler/put_float.c @@ -54,7 +54,8 @@ void put_sign(flags_t *flags, double nbr, int copy) static int put_point(flags_t *flags, int i) { - if (flags->precision > 0 || flags->precision == -1) { + if (flags->precision > 0 || flags->precision == -1 || + flags->flags & FLAGS_ALT_FORM) { flags->spec_buff.str[i] = '.'; return 1; }