* Use addr_t instead of int32, since we're dealing with addresses here, and this
way it wouldn't work on 64 bit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,8 +29,9 @@ find_own_image()
|
||||
int32 cookie = 0;
|
||||
image_info info;
|
||||
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
|
||||
if (((uint32)info.text <= (uint32)find_own_image
|
||||
&& (uint32)info.text + (uint32)info.text_size > (uint32)find_own_image)) {
|
||||
if (((addr_t)info.text <= (addr_t)find_own_image
|
||||
&& (addr_t)info.text + (addr_t)info.text_size
|
||||
> (addr_t)find_own_image)) {
|
||||
// found us
|
||||
__gNetworkStart = (addr_t)min_c(info.text, info.data);
|
||||
__gNetworkEnd = min_c((addr_t)info.text + info.text_size,
|
||||
|
||||
Reference in New Issue
Block a user