fix parse coefficient
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user