comparison runtime/internal/memory.d @ 794:661384d6a936

Fix warnings on x86-64. By fvbommel.
author Christian Kamm <kamm incasoftware de>
date Fri, 28 Nov 2008 21:24:08 +0100
parents eef8ac26c66c
children aa953cc960b6
comparison
equal deleted inserted replaced
793:f6dd817060fc 794:661384d6a936
261 else version( GC_Use_Data_Proc_Maps ) 261 else version( GC_Use_Data_Proc_Maps )
262 { 262 {
263 // TODO: Exclude zero-mapped regions 263 // TODO: Exclude zero-mapped regions
264 264
265 int fd = open("/proc/self/maps", O_RDONLY); 265 int fd = open("/proc/self/maps", O_RDONLY);
266 int count; // %% need to configure ret for read.. 266 ptrdiff_t count; // %% need to configure ret for read..
267 char buf[2024]; 267 char buf[2024];
268 char* p; 268 char* p;
269 char* e; 269 char* e;
270 char* s; 270 char* s;
271 void* start; 271 void* start;
336 p++; 336 p++;
337 } 337 }
338 else 338 else
339 { 339 {
340 count = p - s; 340 count = p - s;
341 memmove(buf.ptr, s, count); 341 memmove(buf.ptr, s, cast(size_t)count);
342 p = buf.ptr + count; 342 p = buf.ptr + count;
343 break; 343 break;
344 } 344 }
345 } 345 }
346 } 346 }