Commit aa2baf8c authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3dx9_36: Add explicit casts in type conversion functions.

parent 6bc4ebd5
......@@ -308,7 +308,7 @@ static INT get_int(D3DXPARAMETER_TYPE type, const void *data)
switch (type)
{
case D3DXPT_FLOAT:
return *(FLOAT *)data;
return (INT)(*(FLOAT *)data);
case D3DXPT_INT:
case D3DXPT_VOID:
......@@ -332,10 +332,10 @@ static FLOAT get_float(D3DXPARAMETER_TYPE type, const void *data)
return *(FLOAT *)data;
case D3DXPT_INT:
return *(INT *)data;
return (FLOAT)(*(INT *)data);
case D3DXPT_BOOL:
return get_bool(type, data);
return (FLOAT)get_bool(type, data);
default:
FIXME("Unhandled type %s.\n", debug_d3dxparameter_type(type));
......
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