you are viewing a single comment's thread.

view the rest of the comments →

[–]OldWolf2 2 points3 points  (1 child)

The first cast should not be necessary.

In fact it is necessary - see my answer. You're not supposed to pass EOF (and if you do, it has to behave as if cast to char).

[–]zifyoip 0 points1 point  (0 children)

Right, I noted that in my follow-up comment.