]> git.llucax.com Git - software/druntime.git/blobdiff - src/compiler/dmd/memory.d
Fixed the static data area range calculation. Previous behavior was causing only...
[software/druntime.git] / 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
     {