if ((currentMemory & (1<<loops)) == (1<<loops))
To the best of my knowledge, this is a correct statement. Even when I replace the whole (1<<loops) thing with a constant, it still spits out the same error.
Can anybody tell me what is wrong with this statement?
Problem with binary &
I'm currently writing the memory management section of my operating system, but I've got a problem with my malloc() function. Specifically, the compiler doesn't like my use of the binary AND operator here:
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement