History

remove a gcc warning for bcheck on x86_64 arch: conversion to pointer from integer of different size

seyko committed 11 years ago

Commit 4c8ffb31 parent 20074d81 file · +4 −2Browse files

Unified · Split

lib/bcheck.c+4−2
@@ -348,7 +348,9 @@ void __bound_init(void) · 347 unmodified lines
348348 int i;
349349 BoundEntry *page;
350350 unsigned long start, size;
351− int *p;
351+
352+ /* int *p; */
353+ __PTRDIFF_TYPE__ *p; /* 32 or 64 bit integer */
352354
353355 /* save malloc hooks and install bound check hooks */
354356 install_malloc_hooks();
@@ -411,7 +413,7 @@ void __bound_init(void) · 56 unmodified lines
411413 #endif
412414
413415 /* add all static bound check values */
414− p = (int *)&__bounds_start;
416+ p = (__PTRDIFF_TYPE__ *)&__bounds_start;
415417 while (p[0] != 0) {
416418 __bound_new_region((void *)p[0], p[1]);
417419 p += 2;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t