diff src/unexcw.c @ 1685:29c45c1b64f3

[xemacs-hg @ 2003-09-15 21:19:11 by james] Quiet compiler warnings on Cygwin.
author james
date Mon, 15 Sep 2003 21:19:17 +0000
parents c1e69bcf8d07
children 04bc9d2f42c7
line wrap: on
line diff
--- a/src/unexcw.c	Mon Sep 15 20:21:47 2003 +0000
+++ b/src/unexcw.c	Mon Sep 15 21:19:17 2003 +0000
@@ -84,14 +84,15 @@
 PEAOUTHDR f_ohdr;
 SCNHDR f_data, f_bss, f_text, f_nextdata;
 
-#define CHECK_AOUT_POS(a)				\
-do {							\
-  if (lseek (a_out, 0, SEEK_CUR) != a)			\
-    {							\
-      printf ("we are at %lx, should be at %lx\n",	\
-	      lseek (a_out, 0, SEEK_CUR), a);		\
-      exit (-1);					\
-    }							\
+#define CHECK_AOUT_POS(a)					\
+do {								\
+  if (lseek (a_out, 0, SEEK_CUR) != a)				\
+    {								\
+      printf ("we are at %lx, should be at %lx\n",		\
+	      (unsigned long) lseek (a_out, 0, SEEK_CUR),	\
+	      (unsigned long) (a));				\
+      exit (-1);						\
+    }								\
 } while (0)
 
 /* Dump out .data and .bss sections into a new executable.  */
@@ -440,8 +441,8 @@
       if (lseek (a_new, 0, SEEK_CUR) != (long) f_nextdata.s_scnptr)
 	{
 	  printf ("at %lx should be at %lx\n", 
-		 lseek (a_new, 0, SEEK_CUR),
-		 f_nextdata.s_scnptr);
+		  (unsigned long) lseek (a_new, 0, SEEK_CUR),
+		  (unsigned long) f_nextdata.s_scnptr);
 	  PERROR ("file positioning error\n");
 	}
       lseek (a_out, f_nextdata_s_scnptr, SEEK_SET);