dticon: make XVaGetValues() call 64-bit compliant
authorMarcin Cieslak <saper@saper.info>
Wed, 26 Sep 2012 10:14:53 +0000 (12:14 +0200)
committerJon Trulson <jon@radscan.com>
Thu, 27 Sep 2012 01:43:00 +0000 (19:43 -0600)
cde/programs/dticon/main.c

index 381086c11a3af66f7faa7b70aa4b58366d1f1d96..77de213c71a7cd22892163b6f02c7a65b9af6eae 100644 (file)
@@ -796,7 +796,8 @@ CREATION:       Visual Edge Software            Sept 19/91
 -----------------------------------------------------------------------------*/
 static  int     handle_dialog_child( Widget wgt, void (*manage_func)() )
 {
-        int     i, num_children;
+        int      i;
+        XtActVal num_children;
         Widget  *children;
 
         XtVaGetValues( wgt,
@@ -809,7 +810,7 @@ static  int     handle_dialog_child( Widget wgt, void (*manage_func)() )
          * implementations of Motif add protocol children to the dialogShell.
          */
 
-        for (i = 0; i < num_children; i++)
+        for (i = 0; i < (int)num_children; i++)
         {
                 if ( XtIsSubclass( children[i], rectObjClass ) )
                 {