Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-30 12:35:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-30 12:35:18 +0400
commit5fb53b6b301c5ed03cdb3f800bb4af9395369a8f (patch)
treea17f6de0a8c64896d554697b018e0a35d4a744bf /intern/ghost
parent60c9addf79fdd68ceda48e451260a74f403f9e15 (diff)
patch [#31091] PVS-Studio Analysis Fixes
from Jason Wilkins (jwilkins) left out openjpeg changes since this library needs updating.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_NDOFManager.cpp2
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);