Fix compiler warnings and 64bitisms.

This commit is contained in:
David Given 2016-08-14 23:01:12 +02:00
parent 870489c8b0
commit 7b8d9e2d0e

View file

@ -23,6 +23,9 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <inttypes.h>
#include <unistd.h>
#include <sys/stat.h>
#include "out.h"
#define ASSERT(x) switch (2) { case 0: case (x): ; }
@ -300,11 +303,11 @@ int main(int argc, char* argv[])
{
long ss = 0;
printf(" base : %08lX\n", outsect[TEXT].os_base) ;
printf(" text = %08lX\n", outsect[TEXT].os_size);
printf(" rom = %08lX\n", outsect[ROM].os_size);
printf(" data = %08lX\n", outsect[DATA].os_size);
printf(" bss = %08lX\n", outsect[BSS].os_size);
printf(" base : "PRIu32"\n", outsect[TEXT].os_base) ;
printf(" text = "PRIu32"\n", outsect[TEXT].os_size);
printf(" rom = "PRIu32"\n", outsect[ROM].os_size);
printf(" data = "PRIu32"\n", outsect[DATA].os_size);
printf(" bss = "PRIu32"\n", outsect[BSS].os_size);
ss += outsect[TEXT].os_size;
ss += outsect[ROM].os_size;
ss += outsect[DATA].os_size;