summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-06-21 18:22:50 +0000
committerjkim <jkim@FreeBSD.org>2012-06-21 18:22:50 +0000
commitf23a349d9fb9c359359e5f64b63ea4e15d776c76 (patch)
treedae7fcbf56306d492c24441d237bffb702357756 /source
parent2276af3c12160e6d7e3e06b506bf4ae5c9e8c420 (diff)
downloadFreeBSD-src-f23a349d9fb9c359359e5f64b63ea4e15d776c76.zip
FreeBSD-src-f23a349d9fb9c359359e5f64b63ea4e15d776c76.tar.gz
Fix "comparison is always true due to limited range of data type" warning
from GCC in the base system. Note this patch was submitted upstream and it will appear in the next ACPICA release. Discussed with: Moore, Robert (robert dot moore at intel dot com)
Diffstat (limited to 'source')
-rw-r--r--source/compiler/aslsupport.l20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/compiler/aslsupport.l b/source/compiler/aslsupport.l
index 2f73900..f63519c 100644
--- a/source/compiler/aslsupport.l
+++ b/source/compiler/aslsupport.l
@@ -92,7 +92,7 @@ static void
AslDoLineDirective (
void)
{
- UINT8 c;
+ int c;
char *Token;
UINT32 LineNumber;
char *Filename;
@@ -103,7 +103,7 @@ AslDoLineDirective (
Gbl_LineBufPtr = Gbl_CurrentLineBuffer;
- while ((c = (UINT8) input()) != '\n' && c != EOF)
+ while ((c = input()) != '\n' && c != EOF)
{
*Gbl_LineBufPtr = c;
Gbl_LineBufPtr++;
@@ -430,8 +430,8 @@ static char
AslDoComment (
void)
{
- char c;
- char c1 = 0;
+ int c;
+ int c1 = 0;
AslInsertLineBuffer ('/');
@@ -441,7 +441,7 @@ loop:
/* Eat chars until end-of-comment */
- while ((c = (char) input()) != '*' && c != EOF)
+ while ((c = input()) != '*' && c != EOF)
{
AslInsertLineBuffer (c);
c1 = c;
@@ -468,7 +468,7 @@ loop:
AslInsertLineBuffer (c);
- if ((c1 = (char) input()) != '/' && c1 != EOF)
+ if ((c1 = input()) != '/' && c1 != EOF)
{
unput(c1);
goto loop;
@@ -511,13 +511,13 @@ static char
AslDoCommentType2 (
void)
{
- char c;
+ int c;
AslInsertLineBuffer ('/');
AslInsertLineBuffer ('/');
- while ((c = (char) input()) != '\n' && c != EOF)
+ while ((c = input()) != '\n' && c != EOF)
{
AslInsertLineBuffer (c);
}
@@ -553,7 +553,7 @@ AslDoStringLiteral (
char *StringBuffer = MsgBuffer;
char *EndBuffer = MsgBuffer + ASL_MSG_BUFFER_SIZE;
char *CleanString;
- char StringChar;
+ int StringChar;
UINT32 State = ASL_NORMAL_CHAR;
UINT32 i = 0;
UINT8 Digit;
@@ -566,7 +566,7 @@ AslDoStringLiteral (
* source line buffer.
*/
AslInsertLineBuffer ('\"');
- while ((StringChar = (char) input()) != EOF)
+ while ((StringChar = input()) != EOF)
{
AslInsertLineBuffer (StringChar);
OpenPOWER on IntegriCloud