Follow Axel's example in r27000 and use addr_t here.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27007 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2008-08-17 16:49:39 +00:00
parent de4daffba0
commit 878cc30445
@@ -185,9 +185,9 @@ find_own_image(image_info *info)
{ {
int32 cookie = 0; int32 cookie = 0;
while (get_next_image_info(B_CURRENT_TEAM, &cookie, info) == B_OK) { while (get_next_image_info(B_CURRENT_TEAM, &cookie, info) == B_OK) {
if (((uint32)info->text <= (uint32)find_own_image if (((addr_t)info->text <= (addr_t)find_own_image
&& (uint32)info->text + info->text_size > && (addr_t)info->text + info->text_size
(uint32)find_own_image)) { > (addr_t)find_own_image)) {
return B_OK; return B_OK;
} }
} }