Don't switch on longs!
authorceriel <none@none>
Tue, 17 Mar 1987 11:12:09 +0000 (11:12 +0000)
committerceriel <none@none>
Tue, 17 Mar 1987 11:12:09 +0000 (11:12 +0000)
util/ego/cs/cs_getent.c

index 791c55a..e2bd963 100644 (file)
@@ -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;