summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1996-10-17 22:26:49 +0000
committerEzra Peisach <epeisach@mit.edu>1996-10-17 22:26:49 +0000
commit630f0d9ce3a9b523c4b40606a00e58f0cccbb33d (patch)
treeb085b3d15f5230d64e7c8ab0b4057bc9fc047e4d /src
parentd52818beaf867a7517c33f5def9a56ca8825124a (diff)
Work around a compiler bug on the Alpha.
The testing of two longs being equal would sometimes fail. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9192 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/et/ChangeLog5
-rw-r--r--src/util/et/error_message.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog
index 86d108124..9c59f896d 100644
--- a/src/util/et/ChangeLog
+++ b/src/util/et/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 17 18:24:50 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * error_message.c (error_message): Work around a compiler bug on
+ the Alpha.
+
Thu Sep 5 21:31:07 1996 Theodore Y. Ts'o <tytso@mit.edu>
* et_c.awk: Change continuation processing so that it doesn't
diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c
index a3c057824..b14254827 100644
--- a/src/util/et/error_message.c
+++ b/src/util/et/error_message.c
@@ -75,7 +75,9 @@ long code;
#endif /* HAVE_STRERROR */
}
for (et = _et_list; et; et = et->next) {
- if (et->table->base == table_num) {
+ /* This is to work around a bug in the compiler on the Alpha
+ comparing longs */
+ if (((int) (et->table->base - table_num)) == 0) {
/* This is the right table */
if (et->table->n_msgs <= offset)
goto oops;