diff options
author | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-30 03:28:03 +0000 |
---|---|---|
committer | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-30 03:28:03 +0000 |
commit | f2af45628493d62903944ea8f5bb456674b8d920 (patch) | |
tree | bd91de756a4f816fc1b2b5d07415f30d1567100e /apps/gperf | |
parent | 475e83e1baae27041bcf1a835c5405e3218fbdd4 (diff) | |
download | ATCD-f2af45628493d62903944ea8f5bb456674b8d920.tar.gz |
ChangeLogTag: Tue Oct 29 22:27:24 2002 Frank Hunleth <frank@hunleth.com>
Diffstat (limited to 'apps/gperf')
-rw-r--r-- | apps/gperf/src/Key_List.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp index 19f856148d8..80d3d89e840 100644 --- a/apps/gperf/src/Key_List.cpp +++ b/apps/gperf/src/Key_List.cpp @@ -759,7 +759,7 @@ Key_List::output_keylength_table (void) ACE_OS::printf ("\n%sstatic %sunsigned %s lengthtable[] =\n%s%s{\n ", indent, option[CONSTANT] ? "const " : "", - max_key_len <= UCHAR_MAX ? "char" : (max_key_len <= USHRT_MAX ? "short" : "long"), + max_key_len <= ((int) UCHAR_MAX) ? "char" : (max_key_len <= ((int) USHRT_MAX) ? "short" : "long"), indent, indent); @@ -1118,7 +1118,7 @@ Key_List::output_hash_function (void) // Generate the asso_values table. ACE_OS::printf (" static %sunsigned %s asso_values[] =\n {", option[CONSTANT] ? "const " : "", - max_hash_value <= UCHAR_MAX ? "char" : (max_hash_value <= USHRT_MAX ? "short" : "int")); + max_hash_value <= ((int) UCHAR_MAX) ? "char" : (max_hash_value <= ((int) USHRT_MAX) ? "short" : "int")); ACE_OS::printf ("\n#if defined (ACE_MVS)"); #if ACE_STANDARD_CHARACTER_SET_SIZE == ACE_EBCDIC_SIZE |