]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix endianness on write, comments said bytes, code said bits. We want bytes. :)
authorEric Sandeen <eric@sgi.com>
Fri, 13 Jul 2001 21:32:49 +0000 (21:32 +0000)
committerEric Sandeen <eric@sgi.com>
Fri, 13 Jul 2001 21:32:49 +0000 (21:32 +0000)
db/bit.c

index de3337877860f0f953e7912a3f4f62da1bc502cf..26ee423138635e2d727d157920f09ba674428967 100644 (file)
--- a/db/bit.c
+++ b/db/bit.c
@@ -165,7 +165,7 @@ setbitval(
 #endif
    
         /* only need to swap LE integers */ 
-        if (big || (nbits!=2 && nbits!=4 && nbits!=8) ) {
+        if (big || (nbits!=8 && nbits!=32 && nbits!=64) ) {
                 /* We don't have type info, so we can only assume
                  * that 2,4 & 8 byte values are integers. sigh.
                  */