Browse Source

"word" is always a long

ceriel 37 years ago
parent
commit
d2734bbdd9
3 changed files with 6 additions and 6 deletions
  1. 2 2
      mach/m68k2/cg/mach.h
  2. 2 2
      mach/z80/cg/mach.h
  3. 2 2
      mach/z8000/cg/mach.h

+ 2 - 2
mach/m68k2/cg/mach.h

@@ -20,9 +20,9 @@
 
 #define loc_off		"%d(a6)"
 #define arg_off		"8+%d(a6)"
-#define hol_off		"%d+hol%d"
+#define hol_off		"%ld+hol%d"
 
-#define con_cst(x)	fprintf(codefile,".data2\t%d\n",x)
+#define con_cst(x)	fprintf(codefile,".data2\t%ld\n",x)
 #define con_ilb(x)	fprintf(codefile,".data4\t%s\n",x)
 #define con_dlb(x)	fprintf(codefile,".data4\t%s\n",x)
 

+ 2 - 2
mach/z80/cg/mach.h

@@ -22,9 +22,9 @@
 
 #define loc_off         "%d(bp)"
 #define arg_off         "4+%d(bp)"
-#define hol_off         "%d+hol%d"
+#define hol_off         "%ld+hol%d"
 
-#define con_cst(x)      fprintf(codefile,".data2\t%d\n",x)
+#define con_cst(x)      fprintf(codefile,".data2\t%ld\n",x)
 #define con_ilb(x)      fprintf(codefile,".data2\t%s\n",x)
 #define con_dlb(x)      fprintf(codefile,".data2\t%s\n",x)
 

+ 2 - 2
mach/z8000/cg/mach.h

@@ -17,9 +17,9 @@
 #define dlb_fmt         "_%d"
 #define hol_fmt         "hol%d"
 
-#define hol_off         "%d+hol%d"
+#define hol_off         "%ld+hol%d"
 
-#define con_cst(x)      fprintf(codefile,"\t.data2 %d\n",x)
+#define con_cst(x)      fprintf(codefile,"\t.data2 %ld\n",x)
 #define con_ilb(x)      fprintf(codefile,"\t.data2 %s\n",x)
 #define con_dlb(x)      fprintf(codefile,"\t.data2 %s\n",x)