mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8015266: fix some -Wsign-compare warnings in adlc
Reviewed-by: kvn
This commit is contained in:
parent
2e5f473752
commit
337a9c1432
5 changed files with 85 additions and 71 deletions
|
@ -29,8 +29,8 @@
|
|||
static FILE *errfile = stderr;
|
||||
|
||||
//--------------------------- utility functions -----------------------------
|
||||
inline char toUpper(char lower) {
|
||||
return (('a' <= lower && lower <= 'z') ? (lower + ('A'-'a')) : lower);
|
||||
inline char toUpper(char lower) {
|
||||
return (('a' <= lower && lower <= 'z') ? ((char) (lower + ('A'-'a'))) : lower);
|
||||
}
|
||||
char *toUpper(const char *str) {
|
||||
char *upper = new char[strlen(str)+1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue