remove a gcc warning for bcheck on x86_64 arch: conversion to pointer from integer of different size
This commit is contained in:
parent
20074d8862
commit
4c8ffb353d
1 changed files with 4 additions and 2 deletions
|
|
@ -348,7 +348,9 @@ void __bound_init(void)
|
||||||
int i;
|
int i;
|
||||||
BoundEntry *page;
|
BoundEntry *page;
|
||||||
unsigned long start, size;
|
unsigned long start, size;
|
||||||
int *p;
|
|
||||||
|
/* int *p; */
|
||||||
|
__PTRDIFF_TYPE__ *p; /* 32 or 64 bit integer */
|
||||||
|
|
||||||
/* save malloc hooks and install bound check hooks */
|
/* save malloc hooks and install bound check hooks */
|
||||||
install_malloc_hooks();
|
install_malloc_hooks();
|
||||||
|
|
@ -411,7 +413,7 @@ void __bound_init(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* add all static bound check values */
|
/* add all static bound check values */
|
||||||
p = (int *)&__bounds_start;
|
p = (__PTRDIFF_TYPE__ *)&__bounds_start;
|
||||||
while (p[0] != 0) {
|
while (p[0] != 0) {
|
||||||
__bound_new_region((void *)p[0], p[1]);
|
__bound_new_region((void *)p[0], p[1]);
|
||||||
p += 2;
|
p += 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue