[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Compiler warnings and signed vs. unsigned char, again
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] Compiler warnings and signed vs. unsigned char, again |
Date: |
Wed, 06 Feb 2013 12:42:48 +0000 |
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.