Michael Stefaniuc : dinput: Remove explicit cast to long as it happens implicitly.
Alexandre Julliard
julliard at winehq.org
Tue May 18 12:32:58 CDT 2010
Module: wine
Branch: master
Commit: 127733ebdacfc5ace26578ce0da0e8bdf28a435d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=127733ebdacfc5ace26578ce0da0e8bdf28a435d
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue May 18 09:47:10 2010 +0200
dinput: Remove explicit cast to long as it happens implicitly.
LPDIEFFECT->rglDirection is a LPLONG.
---
dlls/dinput/effect_linuxinput.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index 3c86a34..7802271 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
return diErr;
else {
if (peff->dwFlags & DIEFF_CARTESIAN) {
- peff->rglDirection[0] = (long)(sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000);
- peff->rglDirection[1] = (long)(cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000);
+ peff->rglDirection[0] = sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
+ peff->rglDirection[1] = cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
} else {
/* Polar and spherical coordinates are the same for two or less
* axes.
More information about the wine-cvs
mailing list