Re: [cdesktopenv-devel] [PATCH] dtfile: fix pointer to integer conversion

2012-09-23 Thread Jon Trulson
On Mon, 24 Sep 2012, Marcin Cieslak wrote: > Use XtArgVal (usually (long)) to convert > (XtPointer) to (int) and back. > > This provides safe way to convert and > avoids compiler warning. Applied, but whenever I see double casts like that, I think "Somethings wrong here"... :) -- Jon Trulson T

[cdesktopenv-devel] [PATCH] dtfile: fix pointer to integer conversion

2012-09-23 Thread Marcin Cieslak
Use XtArgVal (usually (long)) to convert (XtPointer) to (int) and back. This provides safe way to convert and avoids compiler warning. --- cde/programs/dtfile/ChangeDirP.c |2 +- cde/programs/dtfile/Desktop.c |2 +- cde/programs/dtfile/Encaps.c |8