amohr 0 Posted March 24, 2003 Report Share Posted March 24, 2003 the following works as expected: #define SET_BIT(x,y) x = (x | (1<<(y))) while the following always returns 0 #define SET_BIT(x,y) x = (x | (1<<(y-1))) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.