Skip to content

Commit

Permalink
Use brackets around macro args
Browse files Browse the repository at this point in the history
  • Loading branch information
noporpoise committed Nov 27, 2015
1 parent 4ae6e8f commit fb50d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bit_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@
// Block until we get the lock or someone else does
// sets the memory pointed to by retptr to 1 if we got the lock, 0 otherwise
#define bitlock_try_acquire(arr,pos,retptr) do { \
*retptr = 1; /* default to success, set to zero if locked */ \
bitlock_acquire_block(arr,pos,{*retptr=0;break;},if(!*retptr){break;}); \
*(retptr) = 1; /* default to success, set to zero if locked */ \
bitlock_acquire_block(arr,pos,{*(retptr)=0;break;},if(!*(retptr)){break;}); \
} while(0)

/*
Expand Down

0 comments on commit fb50d9a

Please sign in to comment.