Daniel, in function bool parser_datatype_is_secondary_allowed_for_type(const c...

George Chow Answered 5 answers
Question by George Chow 2 years ago

Question

Daniel, in function
bool parser_datatype_is_secondary_allowed_for_type(const char* type)
{
return S_EQ(type, "long") //i.e long int, long long
|| S_EQ(type, "short") //short int
|| S_EQ(type, "double") //????
|| S_EQ(type, "float"); //????
}
long and short can combined with int (secondary allowed), but what can double and float combined with?

Answers

Answered by Daniel McCarthy

Instructor

Hi yes float and double shouldnt be there, this is corrected in a later video. Thanks for bringing it to my attention however but its already been solved, You should check the github repository before writing the question as the repository shows the latest version.

Follow-up by George Chow

Question author

OK, thank you.

Follow-up by George Chow

Question author

Daniel, I pulled the last repository, but I found you forgot to remove float and double.

Answered by Daniel McCarthy

Instructor

Hello,
You are right please make another issue report and it will be resolved

Thanks

Follow-up by George Chow

Question author

OK, I will make one.