Make a warning go away on 64-bit systems.
This commit is contained in:
parent
236c6755d2
commit
7250915d78
@ -47,7 +47,7 @@ int readprofile_main(int argc, char **argv)
|
|||||||
int proFd;
|
int proFd;
|
||||||
const char *mapFile, *proFile, *mult=0;
|
const char *mapFile, *proFile, *mult=0;
|
||||||
unsigned long len=0, indx=1;
|
unsigned long len=0, indx=1;
|
||||||
unsigned long long add0=0;
|
uint64_t add0=0;
|
||||||
unsigned int step;
|
unsigned int step;
|
||||||
unsigned int *buf, total, fn_len;
|
unsigned int *buf, total, fn_len;
|
||||||
unsigned long long fn_add, next_add; /* current and next address */
|
unsigned long long fn_add, next_add; /* current and next address */
|
||||||
@ -223,7 +223,7 @@ int readprofile_main(int argc, char **argv)
|
|||||||
printf ("%s:\n", fn_name);
|
printf ("%s:\n", fn_name);
|
||||||
header_printed = 1;
|
header_printed = 1;
|
||||||
}
|
}
|
||||||
printf ("\t%llx\t%u\n", (indx - 1)*step + add0, buf[indx]);
|
printf ("\t%"PRIx64"\t%u\n", (indx - 1)*step + add0, buf[indx]);
|
||||||
}
|
}
|
||||||
this += buf[indx++];
|
this += buf[indx++];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user