Mercurial > hg > graal-compiler
comparison src/share/vm/adlc/archDesc.cpp @ 10389:f15fe46d8c00
8015266: fix some -Wsign-compare warnings in adlc
Reviewed-by: kvn
author | twisti |
---|---|
date | Thu, 30 May 2013 08:37:08 -0700 |
parents | 70c52efb2cbd |
children | c9ccd7b85f20 |
comparison
equal
deleted
inserted
replaced
10388:320b4e0f0892 | 10389:f15fe46d8c00 |
---|---|
27 #include "adlc.hpp" | 27 #include "adlc.hpp" |
28 | 28 |
29 static FILE *errfile = stderr; | 29 static FILE *errfile = stderr; |
30 | 30 |
31 //--------------------------- utility functions ----------------------------- | 31 //--------------------------- utility functions ----------------------------- |
32 inline char toUpper(char lower) { | 32 inline char toUpper(char lower) { |
33 return (('a' <= lower && lower <= 'z') ? (lower + ('A'-'a')) : lower); | 33 return (('a' <= lower && lower <= 'z') ? ((char) (lower + ('A'-'a'))) : lower); |
34 } | 34 } |
35 char *toUpper(const char *str) { | 35 char *toUpper(const char *str) { |
36 char *upper = new char[strlen(str)+1]; | 36 char *upper = new char[strlen(str)+1]; |
37 char *result = upper; | 37 char *result = upper; |
38 const char *end = str + strlen(str); | 38 const char *end = str + strlen(str); |