diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:50:13 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:50:13 +0000 |
commit | 7ea78c372eea201388c9c1a69467b95a6f5d1988 (patch) | |
tree | 7cef2787ca388010c13bad2e4a84ded63d0d59f2 /ufs | |
parent | 1fda78835568c07e7552fc067545d3a7bd0d7c19 (diff) |
(swab_long_long, swab_long): better now.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/ufs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,14 +181,14 @@ swab_short (short arg) extern inline long swab_long (long arg) { - return ((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 ((swab_long (arg & 0xffffffff) << 32) + return ((long long)(swab_long (arg & 0xffffffff) << 32) | swab_long ((arg & 0xffffffff00000000) >> 32)); } |