That check is there for a reason, and I don't recommend removing it, but it should be changed. The proper way to handle this would be to cast the pointers to void* first before doing the comparison, as the assumption was that the pointers would both be hardware serial types.
That check is there for a reason, and I don't recommend removing it, but it should be changed. The proper way to handle this would be to cast the pointers to
void*
first before doing the comparison, as the assumption was that the pointers would both be hardware serial types.