Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int LeicaDMSTCHub::StopXY(MM::Device& device, MM::Core& core)
- {
- int ret = SetCommand(device, core, xyStage_, 010);
- if (ret != DEVICE_OK)
- return ret;
- return DEVICE_OK;
- }
- I have considerable reasons to suspect that there should be the decimal number 10 instead of octal number 010. Elsewhere: int ret = SetCommand(device, core, xyStage_, 35, ack);
- This suspicious code was found in Micro-Manager project by PVS-Studio static code analyzer.
- Warning message is:
- V536 Be advised that the utilized constant value is represented by an octal form. Oct: 010, Dec: 8. LeicaDMSTCHub.cpp 142
- 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