From 630f0d9ce3a9b523c4b40606a00e58f0cccbb33d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 17 Oct 1996 22:26:49 +0000 Subject: [PATCH] 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 --- src/util/et/ChangeLog | 5 +++++ src/util/et/error_message.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * error_message.c (error_message): Work around a compiler bug on + the Alpha. + Thu Sep 5 21:31:07 1996 Theodore Y. Ts'o * 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; -- 2.26.2