phampton posted # :
forget it, I found a bug in my code :)
I have a bug in my code in which a switch statement branches to the wrong case for a user-defined enum.
Here's the code which reports the incorrect enum. When m_LogLevel == LOG_VERBOSE (4), the function returns LOG_DEBUG. But unfortunately when I try to distill the problem down to a small example piece of code, the problem goes away.
Has anyone else noticed behaviour like this?
Paul
/go?link=http://paulsfxrandomwalk.blogspot.com/
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a bug in my code in which a switch statement branches to the wrong case for a user-defined enum.
Here's the code which reports the incorrect enum. When m_LogLevel == LOG_VERBOSE (4), the function returns LOG_DEBUG. But unfortunately when I try to distill the problem down to a small example piece of code, the problem goes away.
Has anyone else noticed behaviour like this?
Paul
http://paulsfxrandomwalk.blogspot.com/