Fixed undefined left shifting of negative number
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
Showing
想要评论请 注册 或 登录