Index: mmc.c =================================================================== --- mmc.c (revision 217480) +++ mmc.c (working copy) @@ -749,7 +749,10 @@ uint32_t retval = bits[i] >> shift; if (size + shift > 32) retval |= bits[i - 1] << (32 - shift); - return (retval & ((1 << size) - 1)); + if (size < 32) + return (retval & ((1 << size) - 1)); + else + return (retval); } static void