From 4242c54c88f086e4691ad004e95804108bd2d7d4 Mon Sep 17 00:00:00 2001 From: keie Date: Mon, 10 Jun 1985 10:53:15 +0000 Subject: [PATCH] Adapted by Sjoerd to amoeba. --- util/led/byte_order.c | 2 +- util/led/mach.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/led/byte_order.c b/util/led/byte_order.c index 0172ec3d..08120b0b 100644 --- a/util/led/byte_order.c +++ b/util/led/byte_order.c @@ -26,7 +26,7 @@ determine_ordering() bytes_reversed = TRUE; sp = (short *)&l; sp[0] = 0x0001; sp[1] = 0x0002; - if (l != 0x0001 + (0x0002 << 16)) + if (l != 0x0001 + (0x0002L << 16)) words_reversed = TRUE; } diff --git a/util/led/mach.c b/util/led/mach.c index e17bf121..b9355076 100644 --- a/util/led/mach.c +++ b/util/led/mach.c @@ -6,7 +6,7 @@ * Now for Vax 11/750. */ -#define K 1024 +#define K 1024L mems[ALLOEMIT + 0].mem_left = 64 * K; mems[ALLOEMIT + 1].mem_left = 64 * K;