Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Re: gcc:0x81 out of range
- Date: Mon, 18 Dec 2006 16:48:37 +0100
- From: Tobias Diedrich <ranma@example.com>
- Subject: [tlug] Re: gcc:0x81 out of range
- References: <78d7dd350612172039x7d4b3e3fjb63152ee73156687@example.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
Nguyen Vu Hung wrote: > Hello all, > > Please refer to the code in the attachment. > > I have compiled this function with Redhat Enterprise Linux 3, gcc > 3.2.3.20 and it says: > > trim.c:28: warning: comparison is always false due to limited range of data > type > trim.c:38: warning: comparison is always false due to limited range of data > type > > I *thought* this code will get compiled and run in Windows with VC6 at > least, but with gcc 3.2.3, I got the warning ( as you can see ) : 0x81 > is out of range. > > If run properly, this code will trim UEC space but under my > environment, it does not. > > Any idea? char may be an unsigned or a signed type, depending on compiler and platform. gcc supports "-funsigned-char" and "-fsigned-char", useful if you want to compile code that expects the wrong signedness. -- Tobias PGP: http://9ac7e0bc.uguu.de このメールは十割再利用されたビットで作られています。
- Follow-Ups:
- Re: [tlug] Re: gcc:0x81 out of range
- From: Nguyen Vu Hung
- [tlug] Re: gcc:0x81 out of range
- From: Stephen J. Turnbull
- References:
- [tlug] gcc:0x81 out of range
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] SATA software RAID or SAS hardware RAID?
- Next by Date: Re: [tlug] Re: gcc:0x81 out of range
- Previous by thread: Re: [tlug] gcc:0x81 out of range
- Next by thread: Re: [tlug] Re: gcc:0x81 out of range
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links