Skip to content

Commit

Permalink
Macro argument bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gulevich Vasili authored and Gulevich Vasili committed Mar 14, 2012
1 parent c77d1e9 commit d4fff6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsi6camac.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <unistd.h>
#endif

#define NAF(n,a,f) (((f&0x1f)<<16) | ((n&0x1f)<<4) | (a&0xf))
#define NAF24(n,a,f) (((f&0x1f)<<16) | ((n&0x1f)<<4) | (a&0xf) | CAMAC_24)
#define NAF(n,a,f) ((((f)&0x1f)<<16) | (((n)&0x1f)<<4) | ((a)&0xf))
#define NAF24(n,a,f) ((((f)&0x1f)<<16) | (((n)&0x1f)<<4) | ((a)&0xf) | CAMAC_24)

#define N_NAF(naf) (((naf) >> 4 ) & 0x1f)
#define A_NAF(naf) ((naf) & 0xf)
Expand Down

0 comments on commit d4fff6b

Please sign in to comment.