Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- #define wkHdr 0x4000
- #define wkFtn 0x2000
- #define wkAtn 0x0008
- ....
- #define wkSDoc (wkAtn+wkFtn+wkHdr)
- CMD CmdGoto (pcmb)
- CMB * pcmb;
- {
- ....
- int wk = PwwdWw(wwCur)->wk;
- if (wk | wkSDoc)
- NewCurWw((*hmwdCur)->wwUpper, fTrue);
- ....
- }
- Most likely this is what should be written here: if (wk & wkSDoc)
- This suspicious code was found in Word11a project by PVS-Studio static code analyzer.
- Warning message is:
- V617 Consider inspecting the condition. The '(0x0008 + 0x2000 + 0x4000)' argument of the '|' bitwise operation contains a non-zero value. dlgmisc.c 409
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment