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
path: root/intern
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2011-03-12 01:06:18 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-03-12 01:06:18 +0300
commit60a4c9d09ea1d7216139c93466fb2ca9bef6648c (patch)
treea21d40d5d3738edf97af9b3c947a5f12f4889c0d /intern
parent977fdc5a5600febf27b917b15a0db30ba1253be8 (diff)
Some explicit casts to silence warnings (unsafe to mix int and bool in comparisons).
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index b940823534a..e815430da7a 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -470,37 +470,37 @@ GHOST_TKey GHOST_SystemWin32::hardKey(GHOST_IWindow *window, WPARAM wParam, LPAR
switch(key) {
case GHOST_kKeyLeftShift:
{
- changed = (modifiers.get(GHOST_kModifierKeyLeftShift) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyLeftShift) != (bool)*keyDown);
modifier = GHOST_kModifierKeyLeftShift;
}
break;
case GHOST_kKeyRightShift:
{
- changed = (modifiers.get(GHOST_kModifierKeyRightShift) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyRightShift) != (bool)*keyDown);
modifier = GHOST_kModifierKeyRightShift;
}
break;
case GHOST_kKeyLeftControl:
{
- changed = (modifiers.get(GHOST_kModifierKeyLeftControl) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyLeftControl) != (bool)*keyDown);
modifier = GHOST_kModifierKeyLeftControl;
}
break;
case GHOST_kKeyRightControl:
{
- changed = (modifiers.get(GHOST_kModifierKeyRightControl) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyRightControl) != (bool)*keyDown);
modifier = GHOST_kModifierKeyRightControl;
}
break;
case GHOST_kKeyLeftAlt:
{
- changed = (modifiers.get(GHOST_kModifierKeyLeftAlt) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyLeftAlt) != (bool)*keyDown);
modifier = GHOST_kModifierKeyLeftAlt;
}
break;
case GHOST_kKeyRightAlt:
{
- changed = (modifiers.get(GHOST_kModifierKeyRightAlt) != *keyDown);
+ changed = (modifiers.get(GHOST_kModifierKeyRightAlt) != (bool)*keyDown);
modifier = GHOST_kModifierKeyRightAlt;
}
break;
@@ -509,7 +509,7 @@ GHOST_TKey GHOST_SystemWin32::hardKey(GHOST_IWindow *window, WPARAM wParam, LPAR
if(changed)
{
- modifiers.set(modifier, *keyDown);
+ modifiers.set(modifier, (bool)*keyDown);
system->storeModifierKeys(modifiers);
}
else