24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
$NetBSD: patch-ah,v 1.2 2015/12/29 23:34:44 dholland Exp $
|
|
|
|
Silence integer/pointer size warnings.
|
|
|
|
--- src/bc_exec.cxx~ 2005-05-06 11:37:47.000000000 -0400
|
|
+++ src/bc_exec.cxx 2008-09-04 23:52:56.000000000 -0400
|
|
@@ -35,7 +35,7 @@ extern "C" int G__bc_exec_virtualbase_by
|
|
|
|
// TODO, below is a dead copy of virtual_bytecode which may not work
|
|
|
|
- int vtagnum = (int)funcname; // tagnum of given pointer
|
|
+ int vtagnum = (int)(intptr_t)funcname; // tagnum of given pointer
|
|
int vtblindex = hash&0xffff; // virtual function table index
|
|
int vbasetagnum = hash/0x10000; // vbasetagnum
|
|
int voffset=G__struct.virtual_offset[vtagnum]; // offset for true tagnum info
|
|
@@ -100,7 +100,7 @@ extern "C" int G__bc_exec_virtual_byteco
|
|
,int hash // vtblindex,basetagnum
|
|
) {
|
|
|
|
- int vtagnum = (int)funcname; // tagnum of given pointer
|
|
+ int vtagnum = (int)(intptr_t)funcname; // tagnum of given pointer
|
|
int vtblindex = hash&0xffff; // virtual function table index
|
|
int vbasetagnum = hash/0x10000; // vbasetagnum
|
|
int voffset=G__struct.virtual_offset[vtagnum]; // offset for true tagnum info
|