]> git.llucax.com Git - software/druntime.git/commitdiff
Changed D 2.0 runtime to account for 'this' being changed from a pointer to a referen...
authorsean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Wed, 5 Nov 2008 00:40:16 +0000 (00:40 +0000)
committersean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Wed, 5 Nov 2008 00:40:16 +0000 (00:40 +0000)
git-svn-id: http://svn.dsource.org/projects/druntime/trunk@44 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

src/compiler/dmd/util/console.d
src/gc/basic/gcx.d

index 62991bd908a9b0d53f7bc513e3cc351b3a194605..87d969bb627df1dc51274e45636b37f9ad3a604b 100644 (file)
@@ -35,7 +35,7 @@ struct Console
         {
             write( 2, val.ptr, val.length );
         }
-        return *this;
+        return this;
     }
 
 
index 97a8b0741b016afb22d65735f3cf495ad8900d3d..b913c36c7510a1cb71efe5857f0f51b320f93e25 100644 (file)
@@ -1468,7 +1468,7 @@ struct Gcx
     void initialize()
     {   int dummy;
 
-        (cast(byte*)this)[0 .. Gcx.sizeof] = 0;
+        (cast(byte*)&this)[0 .. Gcx.sizeof] = 0;
         stackBottom = cast(char*)&dummy;
         log_init();
         debug (THREADINVARIANT)