Fix warnings on x86-64. By fvbommel.

This commit is contained in:
Christian Kamm
2008-11-28 21:24:08 +01:00
parent cc6bde46f9
commit cdbc4f84d2
13 changed files with 27 additions and 26 deletions

View File

@@ -263,7 +263,7 @@ void initStaticDataPtrs()
// TODO: Exclude zero-mapped regions
int fd = open("/proc/self/maps", O_RDONLY);
int count; // %% need to configure ret for read..
ptrdiff_t count; // %% need to configure ret for read..
char buf[2024];
char* p;
char* e;
@@ -338,7 +338,7 @@ void initStaticDataPtrs()
else
{
count = p - s;
memmove(buf.ptr, s, count);
memmove(buf.ptr, s, cast(size_t)count);
p = buf.ptr + count;
break;
}