Skip to content

Commit

Permalink
add missing @nogc for Windows-only functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jan 3, 2016
1 parent e286199 commit 6d36fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/experimental/allocator/mallocator.d
Expand Up @@ -240,7 +240,7 @@ struct AlignedMallocator
free(b.ptr);
return true;
}
else version (Windows) @system
else version (Windows) @system @nogc
bool deallocate(void[] b) shared
{
_aligned_free(b.ptr);
Expand Down Expand Up @@ -302,7 +302,7 @@ struct AlignedMallocator
}

version(unittest) version(CRuntime_DigitalMars)
size_t addr(ref void* ptr){return cast(size_t) ptr;}
size_t addr(ref void* ptr) @nogc {return cast(size_t) ptr;}
version(CRuntime_DigitalMars) @nogc unittest
{
void* m;
Expand Down

0 comments on commit 6d36fc1

Please sign in to comment.