]> git.llucax.com Git - software/druntime.git/commitdiff
Fixed the static data area range calculation. Previous behavior was causing only...
authorsean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Thu, 6 Nov 2008 20:36:50 +0000 (20:36 +0000)
committersean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Thu, 6 Nov 2008 20:36:50 +0000 (20:36 +0000)
git-svn-id: http://svn.dsource.org/projects/druntime/trunk@46 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

src/compiler/dmd/memory.d

index afd2d9010d14c0ea0c09bbcf57e9f14634f7482c..7ea24dd9f10faef57a7aec2bd94050ea34505983 100644 (file)
@@ -139,11 +139,11 @@ void initStaticDataGC()
 {
     version( Windows )
     {
-        gc_addRange( &_xi_a, &_end - &_xi_a );
+        gc_addRange( &_xi_a, cast(size_t) &_end - cast(size_t) &_xi_a );
     }
     else version( linux )
     {
-        gc_addRange( &__data_start, &_end - &__data_start );
+        gc_addRange( &__data_start, cast(size_t) &_end - cast(size_t) &__data_start );
     }
     else
     {