mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
aa2fabcba58246a8d0a99b1407373c7c3a7c0316
Added explicit cast to unsigned before doing the left shift. This was caught by UBSan which reported things like: drawing.cpp:361:22: runtime error: left shift of negative value -26214 drawing.cpp:383:22: runtime error: left shift of negative value -78642
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/4.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Description
Languages
C++
87.6%
C
3.1%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.7%