[UDFS] Fix macros to support 'bit' being a complex expression

This is for example used in udf_info/mount.cpp:
    UDFSetUsedBits(new_bm, i & ~(d-1), d);
This commit is contained in:
Hervé Poussineau 2019-04-07 19:08:53 +02:00
parent 5f69f99ce2
commit 902b86eecf

View file

@ -1184,13 +1184,13 @@ UDFClrBits__(
#define UDFSetBits(arr, bit, bc) \
{uint32 j; \
for(j=0;j<bc;j++) { \
UDFSetBit(arr, bit+j); \
UDFSetBit(arr, (bit)+j); \
}}
#define UDFClrBits(arr, bit, bc) \
{uint32 j; \
for(j=0;j<bc;j++) { \
UDFClrBit(arr, bit+j); \
UDFClrBit(arr, (bit)+j); \
}}
#endif // _X86_