Commit 39b99d47 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dinput: Remove unneeded casts.

parent 81d96482
......@@ -319,7 +319,7 @@ void fill_DataFormat(void *out, const void *in, const DataFormat *df) {
case 4:
TRACE("Copying (i) to %d default value %d\n",
df->dt[i].offset_out, df->dt[i].value);
*((int *) (out_c + df->dt[i].offset_out)) = (int) df->dt[i].value;
*((int *) (out_c + df->dt[i].offset_out)) = df->dt[i].value;
break;
default:
......
......@@ -55,17 +55,17 @@ static const IDirectInput8WVtbl ddi8wvt;
static inline IDirectInputImpl *impl_from_IDirectInput7W( IDirectInput7W *iface )
{
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl7w );
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl7w );
}
static inline IDirectInputImpl *impl_from_IDirectInput8A( IDirectInput8A *iface )
{
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8a );
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8a );
}
static inline IDirectInputImpl *impl_from_IDirectInput8W( IDirectInput8W *iface )
{
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8w );
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8w );
}
static inline IDirectInput7W *IDirectInput7W_from_impl( IDirectInputImpl *iface )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment