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;