Fix dtfile crash on 64 bit
When asking for data using XtVaGetValue() make sure that there is enough place for the return value (which is sometimes XtPointer). Providing pointer to (int) is not enough. Cast XtPointer into requested int types directly, which unfortunately introduces compilation warning: cast from pointer to integer of different size
This commit is contained in:
committed by
Jon Trulson
parent
9b77aa08b4
commit
1041e08003
@@ -1757,9 +1757,12 @@ Create_Action_Area(
|
||||
|
||||
if (i == actions.defaultAction)
|
||||
{
|
||||
XtPointer heightptr;
|
||||
Dimension height, h;
|
||||
XtVaGetValues (action_area, XmNmarginHeight, &h, NULL);
|
||||
XtVaGetValues (widget, XmNheight, &height, NULL);
|
||||
XtVaGetValues (action_area, XmNmarginHeight, &heightptr, NULL);
|
||||
height = (Dimension)heightptr;
|
||||
XtVaGetValues (widget, XmNheight, &heightptr, NULL);
|
||||
h = (Dimension)heightptr;
|
||||
|
||||
height +=2 * h;
|
||||
XtVaSetValues (action_area,
|
||||
|
||||
Reference in New Issue
Block a user