From a6b63759857fa26f14e812f8858328c61d63c8d4 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 17 Mar 1987 11:12:09 +0000 Subject: [PATCH] Don't switch on longs! --- util/ego/cs/cs_getent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/ego/cs/cs_getent.c b/util/ego/cs/cs_getent.c index 791c55a26..e2bd9635a 100644 --- a/util/ego/cs/cs_getent.c +++ b/util/ego/cs/cs_getent.c @@ -96,9 +96,11 @@ entity_p getentity(lnp, l_out) /* Lor is a special case. */ if (INSTR(lnp) == op_lor) { + offset off = off_set(lnp); + en.en_static = FALSE; en.en_size = ps; - switch (off_set(lnp)) { + switch ((int) off == off ? (int) off : 3) { default: assert(FALSE); break;