Having a difficult choice between unplasant
cast to get a void * into an enumeration type
and "Something's wrong here" double cast
I decided for the latter.
At least it does not crash when the legal
value of zero is passed as the argument.
char *marginSpec = NULL;
XtEnum parseError;
Widget text;
-#if defined(linux) || defined(CSRG_BASED)
- _DtPrintMarginEnum which = *((_DtPrintMarginEnum *) data);
-#else
- _DtPrintMarginEnum which = (_DtPrintMarginEnum) data;
-#endif
+
+ _DtPrintMarginEnum which = (_DtPrintMarginEnum)(long)data;
text = pui->getWidget();
if (text)