new struct for polynom
This commit is contained in:
@@ -258,8 +258,8 @@ void parse(s_token *tokens, s_term *terms, int terms_count_max)
|
||||
// last token is TOKEN_END, and terms[] should have at least one more spot for the END term
|
||||
if (tokens[i].type == TOKEN_END && terms_count < terms_count_max)
|
||||
{
|
||||
terms[terms_count].position = TERM_END;
|
||||
terms[terms_count].sign = TERM_NULL;
|
||||
terms[terms_count].position = TERM_POS_END;
|
||||
terms[terms_count].sign = TERM_SIGN_END;
|
||||
terms[terms_count].coefficient = 0;
|
||||
terms[terms_count].exponent = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user