diff 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
line wrap: on
line diff
--- a/runtime/internal/memory.d	Thu Nov 27 18:31:09 2008 +0100
+++ b/runtime/internal/memory.d	Fri Nov 28 21:24:08 2008 +0100
@@ -263,7 +263,7 @@
         // 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 @@
                     else
                     {
                         count = p - s;
-                        memmove(buf.ptr, s, count);
+                        memmove(buf.ptr, s, cast(size_t)count);
                         p = buf.ptr + count;
                         break;
                     }