diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-30 12:35:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-30 12:35:18 +0400 |
commit | 5fb53b6b301c5ed03cdb3f800bb4af9395369a8f (patch) | |
tree | a17f6de0a8c64896d554697b018e0a35d4a744bf | |
parent | 60c9addf79fdd68ceda48e451260a74f403f9e15 (diff) |
patch [#31091] PVS-Studio Analysis Fixes
from Jason Wilkins (jwilkins)
left out openjpeg changes since this library needs updating.
-rw-r--r-- | intern/ghost/intern/GHOST_NDOFManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_NDOFManager.cpp b/intern/ghost/intern/GHOST_NDOFManager.cpp index 694394afcde..e5f523ca8ef 100644 --- a/intern/ghost/intern/GHOST_NDOFManager.cpp +++ b/intern/ghost/intern/GHOST_NDOFManager.cpp @@ -286,7 +286,7 @@ bool GHOST_NDOFManager::setDevice(unsigned short vendor_id, unsigned short produ } if (m_buttonMask == 0) - m_buttonMask = ~(-1 << m_buttonCount); + m_buttonMask = (int) ~(UINT_MAX << m_buttonCount); #ifdef DEBUG_NDOF_BUTTONS printf("ndof: %d buttons -> hex:%X\n", m_buttonCount, m_buttonMask); |