mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-10 17:34:09 +02:00
Fix warnings on x86-64. By fvbommel.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user