fix parse coefficient

This commit is contained in:
hugogogo
2026-05-03 21:52:41 +02:00
parent 6157fdb59f
commit 07144c53c6
3 changed files with 44 additions and 48 deletions

View File

@@ -40,7 +40,11 @@ static void print_context_tokens()
ft_putstr(" - value : ");
if (tokens_g_err[i].tag == TOKEN_NUMBER)
if (tokens_g_err[i].type == TOKEN_NUMBER_INT)
{
ft_dprintf(STDERR_FILENO, "%i\n", tokens_g_err[i].value_int);
}
else if (tokens_g_err[i].type == TOKEN_NUMBER_DOUBLE)
{
dprintf(STDERR_FILENO, "%g\n", tokens_g_err[i].value_double);
}