mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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:
parent
5f69f99ce2
commit
902b86eecf
1 changed files with 2 additions and 2 deletions
|
@ -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_
|
||||
|
|
Loading…
Reference in a new issue