summaryrefslogtreecommitdiff
path: root/apps/gperf
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-28 04:27:55 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-28 04:27:55 +0000
commita1e313134da979f9bb175a6fd3f225953bd6201c (patch)
tree5d87c6e671ba15673971cbd3da3aa157428a1d03 /apps/gperf
parent184a8b633508048c020eb81f8e4f9c1f53461e35 (diff)
downloadATCD-a1e313134da979f9bb175a6fd3f225953bd6201c.tar.gz
.
Diffstat (limited to 'apps/gperf')
-rw-r--r--apps/gperf/ChangeLog4
-rw-r--r--apps/gperf/src/Key_List.cpp2
-rw-r--r--apps/gperf/src/Key_List.h4
3 files changed, 7 insertions, 3 deletions
diff --git a/apps/gperf/ChangeLog b/apps/gperf/ChangeLog
index 8fb7b7b529c..5634b84f0ef 100644
--- a/apps/gperf/ChangeLog
+++ b/apps/gperf/ChangeLog
@@ -1,5 +1,9 @@
Sun Sep 27 00:04:18 1998 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+ * src/Key_List.cpp (dump): Reverted back to using int for
+ keyword_width to keep certain compilers happy. Thanks to David
+ Levine for reporting this.
+
* src/Key_List: MAke sure that we don't generate the lookup table
twice if we're forced to change to the switch format.
diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp
index 97674d1afd4..a1291735590 100644
--- a/apps/gperf/src/Key_List.cpp
+++ b/apps/gperf/src/Key_List.cpp
@@ -1498,7 +1498,7 @@ Key_List::dump (void)
? option.max_keysig_size ()
: ACE_OS::strlen ("keysig");
- u_int keyword_width = this->max_key_length () > ACE_OS::strlen ("keysig")
+ int keyword_width = this->max_key_length () > ACE_OS::strlen ("keysig")
? this->max_key_length ()
: ACE_OS::strlen ("keysig");
diff --git a/apps/gperf/src/Key_List.h b/apps/gperf/src/Key_List.h
index d6da13425d0..d1fc085151e 100644
--- a/apps/gperf/src/Key_List.h
+++ b/apps/gperf/src/Key_List.h
@@ -62,7 +62,7 @@ public:
Key_List (void);
~Key_List (void);
int keyword_list_length (void);
- int max_key_length (void);
+ u_int max_key_length (void);
void reorder (void);
void sort (void);
int read_keys (void);
@@ -121,7 +121,7 @@ private:
char *include_src;
// C source code to be included verbatim.
- int max_key_len;
+ u_int max_key_len;
// Maximum length of the longest keyword.
int min_key_len;