From 48f7be1f8e60a384b651e46b69853e5fdf1b5344 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 22 Apr 1988 15:49:20 +0000 Subject: [PATCH] corrected; did some shifts that have undefined result --- lang/cem/ctest/ctdivers/ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/cem/ctest/ctdivers/ops.c b/lang/cem/ctest/ctdivers/ops.c index d6ce1ebc4..3131489b2 100644 --- a/lang/cem/ctest/ctdivers/ops.c +++ b/lang/cem/ctest/ctdivers/ops.c @@ -54,7 +54,7 @@ ushift() { printf(" u>>13 %6o\n", u>>13 ) ; printf(" u>>14 %6o\n", u>>14 ) ; printf(" u>>15 %6o\n", u>>15 ) ; - printf(" u>>16 %6o\n", u>>16 ) ; + if (sizeof(unsigned) > 2) printf(" u>>16 %6o\n", u>>16 ) ; printf(" u<<0 %6o\n", u<<0 ) ; printf(" u<<1 %6o\n", u<<1 ) ; printf(" u<<2 %6o\n", u<<2 ) ; @@ -71,7 +71,7 @@ ushift() { printf(" u<<13 %6o\n", u<<13 ) ; printf(" u<<14 %6o\n", u<<14 ) ; printf(" u<<15 %6o\n", u<<15 ) ; - printf(" u<<16 %6o\n", u<<16 ) ; + if (sizeof(unsigned) > 2) printf(" u<<16 %6o\n", u<<16 ) ; } lshift() {