nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Compiler warnings and signed vs. unsigned char, again

2013-02-06 08:32:41
Hi Paul,

Right, but I was thinking we'd be doing:

    isdigit((unsigned char) c);

Which, AFAIK, is correct.

Some people advocated (and I thought that's what Lyndon was talking
about):

    isdigit((int)(unsigned char) c);

NetBSD's man page suggested the (int) because of a compiler bug, I think
it shouldn't be done...  That could be a very old bug.

doesn't ansi c require the isdigit implementation to do that?

That's my understanding.

Cheers, Ralph.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>