From c13f3a0bde98da1270d2cb64e63c151442855d95 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 23 Apr 1996 18:51:31 +0000 Subject: and even better --- ufs/ufs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ufs/ufs.h b/ufs/ufs.h index 19ea89c3..9fa312e6 100644 --- a/ufs/ufs.h +++ b/ufs/ufs.h @@ -181,14 +181,14 @@ swab_short (short arg) extern inline long swab_long (long arg) { - return ((long) (swab_short (arg & 0xffff) << 16) + return (((long) swab_short (arg & 0xffff) << 16) | swab_short ((arg & 0xffff0000) >> 16)); } extern inline long long swab_long_long (long long arg) { - return ((long long)(swab_long (arg & 0xffffffff) << 32) + return (((long long) swab_long (arg & 0xffffffff) << 32) | swab_long ((arg & 0xffffffff00000000) >> 32)); } -- cgit v1.2.3