X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/bcf5b1203472d877e1f3560ca595cc1341c3783b..06df0cbad0c518989750f59ebc17d7eba2a2aec5:/src/compiler/dmd/memory.d?ds=inline diff --git a/src/compiler/dmd/memory.d b/src/compiler/dmd/memory.d index afd2d90..7ea24dd 100644 --- a/src/compiler/dmd/memory.d +++ b/src/compiler/dmd/memory.d @@ -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 {